lwip/src/core
David van Moolenbroek 0a3e4cd10e tcp: fix accept event on closed listening PCBs
If LWIP_CALLBACK_API is not defined, but TCP_LISTEN_BACKLOG is, then
the LWIP_EVENT_ACCEPT TCP event may be triggered for closed listening
sockets.  This case is just as disastrous for the event API as it is
for the callback API, as there is no way for the event hook to tell
whether the listening PCB is still around.  Add the same protection
against this case for TCP_LISTEN_BACKLOG as was already in place for
LWIP_CALLBACK_API.

Also remove one NULL check for LWIP_CALLBACK_API that had already
become redundant for all callers, making the TCP_EVENT_ACCEPT code
for that callback wrapper more in line with the rest of the wrappers.

(cherry picked from commit 240cf62056)
2017-02-27 12:25:52 +01:00
..
ipv4 Implement task #14367: Hooks need a better place to be defined 2017-02-27 12:25:08 +01:00
ipv6 Implement task #14367: Hooks need a better place to be defined 2017-02-27 12:25:08 +01:00
def.c Minor documentation update in def.c 2016-12-29 09:28:45 +01:00
dns.c dns: added one-shot multicast DNS queries 2016-12-09 09:20:46 +01:00
inet_chksum.c Add #include <stddef.h> to a central place (arch.h) instead of #including it in several other files throughout lwip since size_t is needed in many places 2016-11-30 07:43:59 +01:00
init.c Add a check for correct implementation of LWIP_CONST_CAST() to lwip_init() 2016-12-14 08:31:09 +01:00
ip.c Some documentation cleanups and include more comments that have been already in code into doxygen docs 2016-08-07 10:05:34 +02:00
mem.c Fix warning that local variable may be used uninitialized in mem.c 2017-01-05 08:07:41 +01:00
memp.c Implement task #14367: Hooks need a better place to be defined 2017-02-27 12:25:08 +01:00
netif.c ipv6: adjust MLD membership on address state changes 2016-12-20 22:28:02 +01:00
pbuf.c Fix bug #50040: pbuf_alloc(..., 65534, PBUF_RAM) succeeds 2017-02-27 12:16:16 +01:00
raw.c Fix bug #50206: UDP Netconn bind to IP6_ADDR_ANY fails 2017-02-27 12:20:01 +01:00
stats.c stats: Remove superfluous /t in end of stats display 2017-02-27 12:19:08 +01:00
sys.c Create documentation section "porting" and move it under lwIP section (instead of infrastructure) 2016-12-29 09:29:24 +01:00
tcp_in.c tcp: fix accept event on closed listening PCBs 2017-02-27 12:25:52 +01:00
tcp_out.c Fixed bug #50090 (ast_unsent->oversize_left can become wrong value in tcp_write error path) 2017-02-27 12:21:31 +01:00
tcp.c Implement task #14367: Hooks need a better place to be defined 2017-02-27 12:25:08 +01:00
timeouts.c Fix bug #49827: wrong cast to size_t on 16-bit x86 architecture 2016-12-12 10:07:00 +01:00
udp.c Fix bug #50206: UDP Netconn bind to IP6_ADDR_ANY fails 2017-02-27 12:20:01 +01:00