git: aeb6948d4319 - main - bbr: check proper flag for connection had been closed
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 09 Jul 2022 05:04:58 UTC
The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=aeb6948d4319fdaef8a7a6ea72717968cf5ef79b commit aeb6948d4319fdaef8a7a6ea72717968cf5ef79b Author: Gleb Smirnoff <glebius@FreeBSD.org> AuthorDate: 2022-07-09 05:04:44 +0000 Commit: Gleb Smirnoff <glebius@FreeBSD.org> CommitDate: 2022-07-09 05:04:44 +0000 bbr: check proper flag for connection had been closed An older version of D35663 slipped through final reviews. Submitted by: Peter Lei Fixes: 74703901d8bbc3bc7a29df648bc3c131c87393c2 --- sys/netinet/tcp_stacks/bbr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/tcp_stacks/bbr.c b/sys/netinet/tcp_stacks/bbr.c index 6278bb228c4f..9d5a3d52776e 100644 --- a/sys/netinet/tcp_stacks/bbr.c +++ b/sys/netinet/tcp_stacks/bbr.c @@ -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); /*