Skip to content

Commit b6521ce

Browse files
committed
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 MFC after: 1 week Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D51814
1 parent 9503ed0 commit b6521ce

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

sys/netinet/tcp_input.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2218,7 +2218,6 @@ tcp_do_segment(struct tcpcb *tp, struct mbuf *m, struct tcphdr *th,
22182218
SEQ_LT(th->th_seq, tp->last_ack_sent + tp->rcv_wnd)) {
22192219
tcp_log_end_status(tp, TCP_EI_STATUS_RST_IN_FRONT);
22202220
tp = tcp_drop(tp, ECONNRESET);
2221-
rstreason = BANDLIM_UNLIMITED;
22222221
} else {
22232222
tcp_ecn_input_syn_sent(tp, thflags, iptos);
22242223
tcp_send_challenge_ack(tp, th, m);

0 commit comments

Comments
 (0)