From e8a3d42e2d5fdec20bed19cab244a5a557c5a0f5 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() (cherry picked from commit 86abfbe0877c891f27b52e249cf8d1d3b4d08705) --- 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 aa583323..5e839ff6 100644 --- a/src/core/tcp_in.c +++ b/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