diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2003-04-29 10:25:42 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2003-04-29 10:25:42 +0000 |
commit | e03ac02e183618256b81fca8b614755471bfc689 (patch) | |
tree | d1d22bfb72e0178f1536513a4577ba7b38f30269 /sys/netinet | |
parent | 514246abcc4c62b7e2e6cdac64f799d074c3eea9 (diff) |
Fix logic error introduced when importing a Stevens' bug fix in r1.20;
from provos@, ok dhartmei@
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/tcp_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 7a0b3ffec9c..301f8468ca2 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_input.c,v 1.125 2003/02/14 17:54:46 dhartmei Exp $ */ +/* $OpenBSD: tcp_input.c,v 1.126 2003/04/29 10:25:41 miod Exp $ */ /* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */ /* @@ -1474,7 +1474,7 @@ trimthenstep6: tiflags &= ~TH_URG; todrop--; } - if (todrop >= tlen || + if (todrop > tlen || (todrop == tlen && (tiflags & TH_FIN) == 0)) { /* * Any valid FIN must be to the left of the |