diff options
author | 1997-11-12 20:59:44 +0000 | |
---|---|---|
committer | 1997-11-12 20:59:44 +0000 | |
commit | 8be7923b627b248722df0186b841ccfe5a79cc0b (patch) | |
tree | e09ea9bf81d7b5f982bfa66b3881af7dbb2858ca /sys/netinet/tcp_input.c | |
parent | indent (diff) | |
download | wireguard-openbsd-8be7923b627b248722df0186b841ccfe5a79cc0b.tar.xz wireguard-openbsd-8be7923b627b248722df0186b841ccfe5a79cc0b.zip |
correct RST validity checking; fc@parkone.ci.oakland.ca.us
Diffstat (limited to 'sys/netinet/tcp_input.c')
-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) { |