fixed bug #48476 (TCP sent callback called wrongly due to picking up old pcb->acked

This commit is contained in:
sg 2016-07-11 21:43:39 +02:00
parent 01e5d6d819
commit 421dab87e8
2 changed files with 5 additions and 0 deletions

View File

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

View File

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