1 --- a/networking/udhcp/dhcpc.c
2 +++ b/networking/udhcp/dhcpc.c
3 @@ -1017,7 +1017,7 @@ int udhcpc_main(int argc UNUSED_PARAM, c
7 - if (packet_num < discover_retries) {
8 + if (!discover_retries || packet_num < discover_retries) {
12 @@ -1046,7 +1046,7 @@ int udhcpc_main(int argc UNUSED_PARAM, c
16 - if (packet_num < discover_retries) {
17 + if (!discover_retries || packet_num < discover_retries) {
18 /* send broadcast select packet */
19 send_select(xid, server_addr, requested_ip);
20 timeout = discover_timeout;