Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Sep 2025 17:32:30 GMT
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: ab17974c1203 - main - tcp: fix sending of RST segments
Message-ID:  <202509231732.58NHWUgn031173@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by tuexen:

URL: https://cgit.FreeBSD.org/src/commit/?id=ab17974c12033c6ff3bae27458efcd13584438ba

commit ab17974c12033c6ff3bae27458efcd13584438ba
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2025-09-23 17:29:48 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2025-09-23 17:32:21 +0000

    tcp: fix sending of RST segments
    
    Take endpoint parameters into account when available.
    
    Fixes:          463b5aed0d62 ("tcp: retire rstreason")
    MFC after:      3 days
    Sponsored by:   Netflix, Inc.
---
 sys/netinet/tcp_input.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index d5dc516c28aa..dd27ec77c1af 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -3412,7 +3412,7 @@ dropafterack:
 	return;
 
 dropwithreset:
-	tcp_dropwithreset(m, th, NULL, tlen);
+	tcp_dropwithreset(m, th, tp, tlen);
 	if (tp != NULL) {
 		INP_WUNLOCK(inp);
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202509231732.58NHWUgn031173>