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:
Axel Lin 2018-03-31 11:20:03 +08:00
parent b693056bb6
commit 81acaf0ff1

View File

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