summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_input.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2006-12-11 21:31:58 +0000
committermarkus <markus@openbsd.org>2006-12-11 21:31:58 +0000
commit02c0aee394851a8356de857e1b4ac4d99d1977e3 (patch)
tree617010a7c788c97ed1d746082927b4faf3a97014 /sys/netinet/tcp_input.c
parentdocument regress-dir-depends, after some prodding by janus. (diff)
downloadwireguard-openbsd-02c0aee394851a8356de857e1b4ac4d99d1977e3.tar.xz
wireguard-openbsd-02c0aee394851a8356de857e1b4ac4d99d1977e3.zip
allow RST with th_seq incremented (seen from windows tcp clients); ok dhartmei
Diffstat (limited to 'sys/netinet/tcp_input.c')
-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) {