From cfb8a6a2d2d26631375b3b65fb5a19f8f310ed38 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 14 Jun 2004 15:07:24 +0000 Subject: always fill proxy fields of interfaces --- mdk-stage1/network.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mdk-stage1/network.c b/mdk-stage1/network.c index bc7ead230..af384c427 100644 --- a/mdk-stage1/network.c +++ b/mdk-stage1/network.c @@ -622,9 +622,6 @@ static enum return_type intf_get_http_proxy(struct interface_info * intf) if (results == RETURN_OK) { intf->http_proxy_host = strdup(answers[0]); intf->http_proxy_port = strdup(answers[1]); - } else { - intf->http_proxy_host = ""; - intf->http_proxy_port = ""; } return results; @@ -660,6 +657,9 @@ static enum return_type intf_select_and_up(char **http_proxy_host, char **http_p results = bringup_networking(sel_intf); if (results == RETURN_OK) { + intf->http_proxy_host = ""; + intf->http_proxy_port = ""; + if (http_proxy_host && http_proxy_port) { intf_get_http_proxy(intf); *http_proxy_host = intf->http_proxy_host; -- cgit v1.2.1