mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-20 07:06:53 +08:00
Fixed bug #29769 (sys_check_timeouts: sys_now() may overflow)
This commit is contained in:
@@ -370,8 +370,8 @@ sys_check_timeouts(void)
|
||||
|
||||
now = sys_now();
|
||||
if (next_timeout) {
|
||||
/* @todo: wrap around? */
|
||||
diff = now - timeouts_last_time;
|
||||
/* this cares for wraparounds */
|
||||
diff = LWIP_U32_DIFF(now, timeouts_last_time);
|
||||
do
|
||||
{
|
||||
had_one = 0;
|
||||
|
||||
Reference in New Issue
Block a user