mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-27 02:26:55 +08:00
fixed bug #34638: Dead code in tcp_receive - pcb->dupacks
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user