summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_input.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2005-12-01 22:31:50 +0000
committermarkus <markus@openbsd.org>2005-12-01 22:31:50 +0000
commit89ef4ab4d975ba8eb157e6170af320877620537e (patch)
treee7b51387697a3133efa0e8106dd9679d13c303d3 /sys/netinet/tcp_input.c
parentGet rid of PMAP_NULL and xx_ENTRY_NULL and simply use NULL when necessary. (diff)
downloadwireguard-openbsd-89ef4ab4d975ba8eb157e6170af320877620537e.tar.xz
wireguard-openbsd-89ef4ab4d975ba8eb157e6170af320877620537e.zip
allow RST if the th_seq matches rcv_nxt in case the RST follows the
data immediately. otherwise we would ignore RST for delayed acks; ok deraadt, 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 c95c45db243..f7385892c4c 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_input.c,v 1.193 2005/11/15 21:09:45 miod Exp $ */
+/* $OpenBSD: tcp_input.c,v 1.194 2005/12/01 22:31:50 markus Exp $ */
/* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */
/*
@@ -1423,7 +1423,8 @@ trimthenstep6:
* Close the tcb.
*/
if (tiflags & TH_RST) {
- if (th->th_seq != tp->last_ack_sent)
+ if (th->th_seq != tp->last_ack_sent &&
+ th->th_seq != tp->rcv_nxt)
goto drop;
switch (tp->t_state) {