From 86abfbe0877c891f27b52e249cf8d1d3b4d08705 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Sat, 9 Sep 2017 21:46:41 +0200 Subject: [PATCH] Fix bug #51937 by checking TF_CLOSED at the end of all pcb callbacks in tcp_input() --- src/core/tcp_in.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/tcp_in.c b/src/core/tcp_in.c index 48d95c12..006bdf37 100644 --- a/src/core/tcp_in.c +++ b/src/core/tcp_in.c @@ -521,6 +521,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