From 421dab87e895a6fff40648e687c81ff5b32dd06e Mon Sep 17 00:00:00 2001 From: sg Date: Mon, 11 Jul 2016 21:43:39 +0200 Subject: [PATCH] fixed bug #48476 (TCP sent callback called wrongly due to picking up old pcb->acked --- CHANGELOG | 4 ++++ src/core/tcp_in.c | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 66db593c..14874c90 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -321,6 +321,10 @@ HISTORY ++ Bugfixes: + 2016-07-11: Simon Goldschmidt + * tcp_in.c: fixed bug #48476 (TCP sent callback called wrongly due to picking + up old pcb->acked + 2016-06-30: Simon Goldschmidt (original patch by Fabian Koch) * tcp_in.c: fixed bug #48170 (Vulnerable to TCP RST spoofing) diff --git a/src/core/tcp_in.c b/src/core/tcp_in.c index 375f9349..fbe1d1f3 100644 --- a/src/core/tcp_in.c +++ b/src/core/tcp_in.c @@ -398,6 +398,7 @@ tcp_input(struct pbuf *p, struct netif *inp) goto aborted; } } + pcb->acked = 0; } if (recv_flags & TF_CLOSED) { /* The connection has been closed and we will deallocate the