aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-09-26 22:21:03 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-09-26 22:21:03 +0000
commit7d9399e8dcfb9853f435c2936f449377d92f6e47 (patch)
tree0e2ec9897a7865937772bf76753a39fb74cc9855
parentc321b51dc61f975625a0bfc67cf159f159ee2612 (diff)
downloadbusybox-w32-7d9399e8dcfb9853f435c2936f449377d92f6e47.tar.gz
busybox-w32-7d9399e8dcfb9853f435c2936f449377d92f6e47.tar.bz2
busybox-w32-7d9399e8dcfb9853f435c2936f449377d92f6e47.zip
udhcpc: fixlet for previous commit
-rw-r--r--networking/udhcp/dhcpc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index c1ef19519..8985cc705 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -399,12 +399,14 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
399 if (state == RENEW_REQUESTED) 399 if (state == RENEW_REQUESTED)
400 udhcp_run_script(NULL, "deconfig"); 400 udhcp_run_script(NULL, "deconfig");
401 change_listen_mode(LISTEN_RAW); 401 change_listen_mode(LISTEN_RAW);
402 state = INIT_SELECTING;
403 /* "discover...select...discover..." loops 402 /* "discover...select...discover..." loops
404 * were seen in the wild. Treat then similarly 403 * were seen in the wild. Treat them similarly
405 * to "no response to discover" case */ 404 * to "no response to discover" case */
406 if (state == REQUESTING) 405 if (state == REQUESTING) {
406 state = INIT_SELECTING;
407 goto leasefail; 407 goto leasefail;
408 }
409 state = INIT_SELECTING;
408 timeout = 0; 410 timeout = 0;
409 packet_num = 0; 411 packet_num = 0;
410 continue; 412 continue;