git: 125056694075 - stable/14 - tcp : remove assignment without effect
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 05 Sep 2025 18:56:58 UTC
The branch stable/14 has been updated by tuexen:
URL: https://cgit.FreeBSD.org/src/commit/?id=125056694075a6b7c34e70c7a1ef89bf7255d6c9
commit 125056694075a6b7c34e70c7a1ef89bf7255d6c9
Author: Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2025-08-07 20:14:08 +0000
Commit: Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2025-09-05 18:56:10 +0000
tcp : remove assignment without effect
rstreason is only relevant in the code paths with the label
'dropwithreset', but not in the one with the label 'drop'.
No functional change intended.
Reviewed by: Nick Banks, rrs, Peter Lei, imp
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D51814
(cherry picked from commit b6521ceaf2771fe6b3f4ae7e7eb390312e3a678a)
---
sys/netinet/tcp_input.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index 55164c1ac20f..18b489f2e605 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -2231,7 +2231,6 @@ tcp_do_segment(struct tcpcb *tp, struct mbuf *m, struct tcphdr *th,
SEQ_LT(th->th_seq, tp->last_ack_sent + tp->rcv_wnd)) {
tcp_log_end_status(tp, TCP_EI_STATUS_RST_IN_FRONT);
tp = tcp_drop(tp, ECONNRESET);
- rstreason = BANDLIM_UNLIMITED;
} else {
tcp_ecn_input_syn_sent(tp, thflags, iptos);
tcp_send_challenge_ack(tp, th, m);