[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #52748] the bug in timeouts.c

From: wangcheng
Subject: [lwip-devel] [bug #52748] the bug in timeouts.c
Date: Wed, 27 Dec 2017 09:09:43 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Maxthon/ Chrome/30.0.1599.101 Safari/537.36


                 Summary: the bug in timeouts.c
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: wangcheng
            Submitted on: Wed 27 Dec 2017 02:09:41 PM UTC
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
            lwIP version: git head



in the function "sys_timeout":

the code snippet as follows:

if (next_timeout->time > msecs) {
   next_timeout->time -= msecs;
   timeout->next = next_timeout;
   next_timeout  = timeout;  

the "msecs" should be "timeout->time".

otherwise, the actually time for the timer pointed by "next_timeout" will
longer "diff" than expect.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]