1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-02-03 17:11:32 +00:00

bbr: check proper flag for connection had been closed

An older version of D35663 slipped through final reviews.

Submitted by:	Peter Lei
Fixes:		74703901d8bbc3bc7a29df648bc3c131c87393c2
This commit is contained in:
Gleb Smirnoff 2022-07-08 22:04:44 -07:00
parent 4773d3425e
commit aeb6948d43

View File

@ -9844,7 +9844,7 @@ bbr_do_fin_wait_2(struct mbuf *m, struct tcphdr *th, struct socket *so,
* We call a new function now so we might continue and setup
* to reset at all data being ack'd.
*/
if (tp->t_state > TCPS_CLOSE_WAIT && tlen &&
if ((tp->t_flags & TF_CLOSED) && tlen &&
bbr_check_data_after_close(m, bbr, tp, &tlen, th, so))
return (1);
/*