1 --- a/networking/udhcp/dhcpc.c
2 +++ b/networking/udhcp/dhcpc.c
3 @@ -352,7 +352,7 @@ int udhcpc_main(int argc ATTRIBUTE_UNUSE
7 - if (packet_num < discover_retries) {
8 + if (!discover_retries || packet_num < discover_retries) {
12 @@ -382,7 +382,7 @@ int udhcpc_main(int argc ATTRIBUTE_UNUSE
16 - if (packet_num < discover_retries) {
17 + if (!discover_retries || packet_num < discover_retries) {
18 /* send request packet */
19 if (state == RENEW_REQUESTED) /* unicast */
20 send_renew(xid, server_addr, requested_ip);