From: zhangyanjiao Date: Tue, 24 Oct 2017 01:43:29 +0000 (+0800) Subject: fix tcp crash X-Git-Tag: v3.1-dev~123^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=18dcbfa1e290329e65775d4ccb82a032f3b341fc;p=esp-idf fix tcp crash --- diff --git a/components/lwip/core/tcp.c b/components/lwip/core/tcp.c index 1f915128a4..7d16fce5b4 100755 --- a/components/lwip/core/tcp.c +++ b/components/lwip/core/tcp.c @@ -1353,8 +1353,6 @@ tcp_kill_state(enum tcp_state state) struct tcp_pcb *pcb, *inactive; u32_t inactivity; - LWIP_ASSERT("invalid state", (state == CLOSING) || (state == LAST_ACK)); - inactivity = 0; inactive = NULL; /* Go through the list of active pcbs and get the oldest pcb that is in state