diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-11-12 20:59:45 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-11-12 20:59:45 +0000 |
commit | 28422e30ae73598b88339ba0fe511f282a7043ea (patch) | |
tree | dc75deff3b8e9bef8738f22d37d7ca872bd12834 | |
parent | 24455382f9eccafb54229abea08edcbd15bdc85e (diff) |
correct RST validity checking; fc@parkone.ci.oakland.ca.us
-rw-r--r-- | sys/netinet/tcp_input.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index bcdd8d03ac8..9138f15d703 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_input.c,v 1.16 1997/11/12 20:57:43 deraadt Exp $ */ +/* $OpenBSD: tcp_input.c,v 1.17 1997/11/12 20:59:44 deraadt Exp $ */ /* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */ /* @@ -1059,9 +1059,9 @@ trimthenstep6: */ if (tiflags & TH_RST) { - if ((ti->ti_seq != tp->rcv_nxt) || - (ti->ti_ack && ((SEQ_LEQ(ti->ti_ack, tp->iss) || - SEQ_GT(ti->ti_ack, tp->snd_max))))) + if ((ti->ti_seq != tp->rcv_nxt) && + (ti->ti_ack && ((SEQ_GT(ti->ti_ack, tp->snd_nxt) || + SEQ_LT(ti->ti_ack, (tp->snd_nxt - tp->snd_wnd)))))) goto drop; switch (tp->t_state) { |