[Top][All Lists]

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

[lwip-devel] [bug #50418] LWIP_EVENT_API: fix invalid calbacks for SYN_R

From: Simon Goldschmidt
Subject: [lwip-devel] [bug #50418] LWIP_EVENT_API: fix invalid calbacks for SYN_RCVD pcb
Date: Tue, 28 Feb 2017 06:12:15 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36


                 Summary: LWIP_EVENT_API: fix invalid calbacks for SYN_RCVD
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: goldsimon
            Submitted on: Tue 28 Feb 2017 11:12:14 AM UTC
                Category: TCP
                Severity: 3 - Normal
              Item Group: Faulty Behaviour
                  Status: In Progress
                 Privacy: Public
             Assigned to: goldsimon
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
            lwIP version: git head



See bug #50276, comment #2:
When a pcb is in SYN_RCVD, poll and err events can be executed for this pcb.
However, the application has not seen this pcb yet (just created by listen
For LWIP_CALLBACK_API, all callbacks except 'accept' are still NULL.
However, the callback_arg is != NULL and typically set to the listener. Now if
the listener has been closed already, the callback_arg points to deallocated

Since this is not a problem for LWIP_CALLBACK_API, the fix prevents calling
poll and err events for pcbs in SYN_RCVD.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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