diff options
author | 1999-02-09 22:58:24 +0000 | |
---|---|---|
committer | 1999-02-09 22:58:24 +0000 | |
commit | 32254eae71610f0bb50df3c39b737d10a1e38311 (patch) | |
tree | 507ca78961ae5301a36dc1bc2c414a5c48b09551 /sys/netinet/tcp_input.c | |
parent | do same for the second /dev/urandom example (diff) | |
download | wireguard-openbsd-32254eae71610f0bb50df3c39b737d10a1e38311.tar.xz wireguard-openbsd-32254eae71610f0bb50df3c39b737d10a1e38311.zip |
correct rst handling should not consult ack field here
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r-- | sys/netinet/tcp_input.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 1b0115f1aa5..bca6712e72e 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_input.c,v 1.30 1999/02/08 17:36:28 deraadt Exp $ */ +/* $OpenBSD: tcp_input.c,v 1.31 1999/02/09 22:58:24 hugh Exp $ */ /* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */ /* @@ -1385,9 +1385,7 @@ trimthenstep6: * Close the tcb. */ if (tiflags & TH_RST) { - if ((th->th_seq != tp->rcv_nxt) && - (th->th_ack && ((SEQ_GT(th->th_ack, tp->snd_nxt) || - SEQ_LT(th->th_ack, (tp->snd_nxt - tp->snd_wnd)))))) + if (ti->ti_seq != tp->last_ack_sent) goto drop; switch (tp->t_state) { |