Przeglądaj źródła

Fix bug #51937 by checking TF_CLOSED at the end of all pcb callbacks in tcp_input()

(cherry picked from commit 86abfbe0877c891f27b52e249cf8d1d3b4d08705)
goldsimon 8 lat temu
rodzic
commit
e8a3d42e2d
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      src/core/tcp_in.c

+ 3 - 0
src/core/tcp_in.c

@@ -480,6 +480,9 @@ tcp_input(struct pbuf *p, struct netif *inp)
         }
 
         tcp_input_pcb = NULL;
+        if (tcp_input_delayed_close(pcb)) {
+          goto aborted;
+        }
         /* Try to send something out. */
         tcp_output(pcb);
 #if TCP_INPUT_DEBUG