diff options
author | Hugh Graham <hugh@cvs.openbsd.org> | 1999-02-09 22:58:25 +0000 |
---|---|---|
committer | Hugh Graham <hugh@cvs.openbsd.org> | 1999-02-09 22:58:25 +0000 |
commit | 89bb5cf80c913788c0ea306ae547b6e180496f15 (patch) | |
tree | ac80192d741a342b156e30ed8ef796cdd0baf5b3 /sys/netinet | |
parent | 5a658cd601ea7988a4e50bb84930baef9775f2db (diff) |
correct rst handling should not consult ack field here
Diffstat (limited to 'sys/netinet')
-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) { |