bbr: check proper flag for connection had been closed

An older version of D35663 slipped through final reviews.

Submitted by:	Peter Lei
Fixes:		74703901d8
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);
/*