mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-09-29 07:10:54 +00:00
0a3e4cd10e
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
|
||
---|---|---|
.. | ||
ipv4 | ||
ipv6 | ||
def.c | ||
dns.c | ||
inet_chksum.c | ||
init.c | ||
ip.c | ||
mem.c | ||
memp.c | ||
netif.c | ||
pbuf.c | ||
raw.c | ||
stats.c | ||
sys.c | ||
tcp_in.c | ||
tcp_out.c | ||
tcp.c | ||
timeouts.c | ||
udp.c |