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

(cherry picked from commit 86abfbe087)
This commit is contained in:
goldsimon 2017-09-09 21:46:41 +02:00
parent 66120f7d79
commit e8a3d42e2d

View File

@ -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