lwip-devel
[Top][All Lists]
Advanced

[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/4.4.8.1000 Chrome/30.0.1599.101 Safari/537.36

URL:
  <http://savannah.nongnu.org/bugs/?52748>

                 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

    _______________________________________________________

Details:


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:

  <http://savannah.nongnu.org/bugs/?52748>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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