mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-16 14:11:02 +00:00
fixed bug #34638: Dead code in tcp_receive - pcb->dupacks
This commit is contained in:
parent
386a4b7079
commit
0b382a0d53
@ -49,6 +49,9 @@ HISTORY
|
||||
|
||||
++ Bugfixes:
|
||||
|
||||
2011-10-28: Simon Goldschmidt
|
||||
* tcp_in.c: fixed bug #34638: Dead code in tcp_receive - pcb->dupacks
|
||||
|
||||
2011-10-23: Simon Goldschmidt
|
||||
* mem.c: fixed bug #34429: possible memory corruption with
|
||||
LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT set to 1
|
||||
|
@ -918,8 +918,9 @@ tcp_receive(struct tcp_pcb *pcb)
|
||||
/* Clause 5 */
|
||||
if (pcb->lastack == ackno) {
|
||||
found_dupack = 1;
|
||||
if (pcb->dupacks + 1 > pcb->dupacks)
|
||||
if ((u8_t)(pcb->dupacks + 1) > pcb->dupacks) {
|
||||
++pcb->dupacks;
|
||||
}
|
||||
if (pcb->dupacks > 3) {
|
||||
/* Inflate the congestion window, but not if it means that
|
||||
the value overflows. */
|
||||
|
Loading…
Reference in New Issue
Block a user