From 0ba4d9ecf33478f6114039101521c47c37d26703 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 14 Jun 2004 17:36:50 +0000 Subject: fix brown paper bug combo --- mdk-stage1/network.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'mdk-stage1') diff --git a/mdk-stage1/network.c b/mdk-stage1/network.c index af384c427..1e53db5c9 100644 --- a/mdk-stage1/network.c +++ b/mdk-stage1/network.c @@ -654,16 +654,16 @@ static enum return_type intf_select_and_up(char **http_proxy_host, char **http_p num_interfaces++; } + sel_intf->http_proxy_host = ""; + sel_intf->http_proxy_port = ""; + 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; - *http_proxy_port = intf->http_proxy_port; + intf_get_http_proxy(sel_intf); + *http_proxy_host = sel_intf->http_proxy_host; + *http_proxy_port = sel_intf->http_proxy_port; } save_netinfo(sel_intf); @@ -1059,7 +1059,7 @@ static int choose_mirror_from_list(char *http_proxy_host, char *http_proxy_port, } } - hosts[host_index+1] = NULL; + hosts[host_index] = NULL; results = ask_from_list("Please select a mirror in the list, " "or cancel to specify it.", -- cgit v1.2.1