busybox: remove obsolete httpd patches
[openwrt/openwrt.git] / package / utils / busybox / patches / 240-udhcpc_retries.patch
1 --- a/networking/udhcp/dhcpc.c
2 +++ b/networking/udhcp/dhcpc.c
3 @@ -1319,7 +1319,7 @@ int udhcpc_main(int argc UNUSED_PARAM, c
4
5 switch (state) {
6 case INIT_SELECTING:
7 - if (packet_num < discover_retries) {
8 + if (!discover_retries || packet_num < discover_retries) {
9 if (packet_num == 0)
10 xid = random_xid();
11 /* broadcast */
12 @@ -1348,7 +1348,7 @@ int udhcpc_main(int argc UNUSED_PARAM, c
13 packet_num = 0;
14 continue;
15 case REQUESTING:
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;