diff options
Diffstat (limited to 'networking/udhcp/d6_dhcpc.c')
-rw-r--r-- | networking/udhcp/d6_dhcpc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/udhcp/d6_dhcpc.c b/networking/udhcp/d6_dhcpc.c index dda4a9112..c44220bf9 100644 --- a/networking/udhcp/d6_dhcpc.c +++ b/networking/udhcp/d6_dhcpc.c | |||
@@ -1111,7 +1111,7 @@ int udhcpc6_main(int argc UNUSED_PARAM, char **argv) | |||
1111 | 1111 | ||
1112 | switch (state) { | 1112 | switch (state) { |
1113 | case INIT_SELECTING: | 1113 | case INIT_SELECTING: |
1114 | if (packet_num < discover_retries) { | 1114 | if (!discover_retries || packet_num < discover_retries) { |
1115 | if (packet_num == 0) | 1115 | if (packet_num == 0) |
1116 | xid = random_xid(); | 1116 | xid = random_xid(); |
1117 | /* multicast */ | 1117 | /* multicast */ |
@@ -1140,7 +1140,7 @@ int udhcpc6_main(int argc UNUSED_PARAM, char **argv) | |||
1140 | packet_num = 0; | 1140 | packet_num = 0; |
1141 | continue; | 1141 | continue; |
1142 | case REQUESTING: | 1142 | case REQUESTING: |
1143 | if (packet_num < discover_retries) { | 1143 | if (!discover_retries || packet_num < discover_retries) { |
1144 | /* send multicast select packet */ | 1144 | /* send multicast select packet */ |
1145 | send_d6_select(xid); | 1145 | send_d6_select(xid); |
1146 | timeout = discover_timeout; | 1146 | timeout = discover_timeout; |