mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-19 05:10:40 +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 { \
|
do { \
|
||||||
if((pcb)->accept != NULL) \
|
if((pcb)->accept != NULL) \
|
||||||
(ret) = (pcb)->accept((pcb)->callback_arg,(pcb),(err)); \
|
(ret) = (pcb)->accept((pcb)->callback_arg,(pcb),(err)); \
|
||||||
else (ret) = ERR_OK; \
|
else (ret) = ERR_ARG; \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define TCP_EVENT_SENT(pcb,space,ret) \
|
#define TCP_EVENT_SENT(pcb,space,ret) \
|
||||||
|
Loading…
Reference in New Issue
Block a user