summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2006-12-11 21:31:59 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2006-12-11 21:31:59 +0000
commit563d0cc19e8b0619743d67345e382167d55bc926 (patch)
treeb9ce038f49f5f79092fbaea29851a7bb4203c570
parent2592dbd1a1ee754c116f5deb8af416e648b5adaf (diff)
allow RST with th_seq incremented (seen from windows tcp clients); ok dhartmei
-rw-r--r--sys/netinet/tcp_input.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index 19534c3ab54..9ad61469949 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_input.c,v 1.199 2006/12/05 12:04:36 henning Exp $ */
+/* $OpenBSD: tcp_input.c,v 1.200 2006/12/11 21:31:58 markus Exp $ */
/* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */
/*
@@ -1428,7 +1428,8 @@ trimthenstep6:
*/
if (tiflags & TH_RST) {
if (th->th_seq != tp->last_ack_sent &&
- th->th_seq != tp->rcv_nxt)
+ th->th_seq != tp->rcv_nxt &&
+ th->th_seq != (tp->rcv_nxt + 1))
goto drop;
switch (tp->t_state) {