mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 21:44:38 +08:00
tcp_out: Fix updating remainder_flags in tcp_split_unsent_seg
The code to migrate flags from original segment updating wrong variable so both remainder and remainder_flags may be incorrect. Fix it. Fixes: f582c8833969 ("tcp: persist timer re-work (bug #50837)") Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Joel Cunningham <joel.cunningham@me.com>
This commit is contained in:
parent
b693056bb6
commit
81acaf0ff1
@ -891,7 +891,7 @@ tcp_split_unsent_seg(struct tcp_pcb *pcb, u16_t split)
|
||||
}
|
||||
if (split_flags & TCP_FIN) {
|
||||
split_flags &= ~TCP_FIN;
|
||||
remainder |= TCP_FIN;
|
||||
remainder_flags |= TCP_FIN;
|
||||
}
|
||||
/* SYN should be left on split, RST should not be present with data */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user