Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (7 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/networking/udhcp/arpping.c

    r2725 r3232  
    119119            }
    120120        }
    121         timeout_ms -= (unsigned)monotonic_ms() - prevTime;
    122     } while (timeout_ms > 0);
     121        timeout_ms -= (unsigned)monotonic_ms() - prevTime + 1;
     122
     123        /* We used to check "timeout_ms > 0", but
     124         * this is more under/overflow-resistant
     125         * (people did see overflows here when system time jumps):
     126         */
     127    } while ((unsigned)timeout_ms <= 2000);
    123128
    124129 ret:
Note: See TracChangeset for help on using the changeset viewer.