From 6cc594e9a2a8f3cd4635ed5a305243780f9601ac Mon Sep 17 00:00:00 2001 From: quanjia Date: Wed, 1 Dec 2021 09:30:40 +0800 Subject: [PATCH] tcp_free_listen(): assertion condition error, should be: pcb->state == LISTEN --- src/core/tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/tcp.c b/src/core/tcp.c index 5b4f4e5..2317a84 100644 --- a/src/core/tcp.c +++ b/src/core/tcp.c @@ -220,7 +220,7 @@ tcp_free(struct tcp_pcb *pcb) static void tcp_free_listen(struct tcp_pcb *pcb) { - LWIP_ASSERT("tcp_free_listen: !LISTEN", pcb->state != LISTEN); + LWIP_ASSERT("tcp_free_listen: !LISTEN", pcb->state == LISTEN); #if LWIP_TCP_PCB_NUM_EXT_ARGS tcp_ext_arg_invoke_callbacks_destroyed(pcb->ext_args); #endif -- 2.25.1