]> granicus.if.org Git - esp-idf/commitdiff
fix tcp crash
authorzhangyanjiao <zhangyanjiao@espressif.com>
Tue, 24 Oct 2017 01:43:29 +0000 (09:43 +0800)
committerzhangyanjiao <zhangyanjiao@espressif.com>
Tue, 24 Oct 2017 01:44:44 +0000 (09:44 +0800)
components/lwip/core/tcp.c

index 1f915128a4763cf78d83e7870ccb0f75c9e02abc..7d16fce5b4751aee3b2386dad341ba88af080a5f 100755 (executable)
@@ -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