From 7d9399e8dcfb9853f435c2936f449377d92f6e47 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Fri, 26 Sep 2008 22:21:03 +0000 Subject: [PATCH] udhcpc: fixlet for previous commit --- networking/udhcp/dhcpc.c | 8 +++++--- 1 file 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) if (state == RENEW_REQUESTED) udhcp_run_script(NULL, "deconfig"); change_listen_mode(LISTEN_RAW); - state = INIT_SELECTING; /* "discover...select...discover..." loops - * were seen in the wild. Treat then similarly + * were seen in the wild. Treat them similarly * to "no response to discover" case */ - if (state == REQUESTING) + if (state == REQUESTING) { + state = INIT_SELECTING; goto leasefail; + } + state = INIT_SELECTING; timeout = 0; packet_num = 0; continue; -- 2.25.1