diff options
| author | Michael Tuexen <tuexen@FreeBSD.org> | 2025-09-23 17:29:48 +0000 |
|---|---|---|
| committer | Michael Tuexen <tuexen@FreeBSD.org> | 2025-09-23 17:32:21 +0000 |
| commit | ab17974c12033c6ff3bae27458efcd13584438ba (patch) | |
| tree | f835d08f1973cb5328c9571766a45a6d498613ca | |
| parent | fe1d344bf416aa921b4bf233668dda7cf4e27444 (diff) | |
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.
| -rw-r--r-- | sys/netinet/tcp_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |
