mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-05 08:28:32 +00: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: f582c88339
("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…
Reference in New Issue
Block a user