mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-27 06:14:09 +00:00
Fixed pcb leak when accept-callback is NULL and asserts are disabled
This commit is contained in:
parent
e131d3e32a
commit
eae9798276
@ -511,7 +511,7 @@ err_t lwip_tcp_event(void *arg, struct tcp_pcb *pcb,
|
||||
do { \
|
||||
if((pcb)->accept != NULL) \
|
||||
(ret) = (pcb)->accept((pcb)->callback_arg,(pcb),(err)); \
|
||||
else (ret) = ERR_OK; \
|
||||
else (ret) = ERR_ARG; \
|
||||
} while (0)
|
||||
|
||||
#define TCP_EVENT_SENT(pcb,space,ret) \
|
||||
|
Loading…
Reference in New Issue
Block a user