summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>1999-08-31 21:41:06 +0000
committerNiels Provos <provos@cvs.openbsd.org>1999-08-31 21:41:06 +0000
commit6b10a20b6891eb69890d7044b108b45612d5125a (patch)
tree371eb8f074f1a4663ca635049c526bf0278d70a3 /sys
parentb632e1f0fd0e0dcf89fc37a6464b4d7f34262b2d (diff)
correctly update window information
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/tcp_input.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index 36fda0deedc..6a0ddf23205 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_input.c,v 1.47 1999/08/27 15:35:56 provos Exp $ */
+/* $OpenBSD: tcp_input.c,v 1.48 1999/08/31 21:41:05 provos Exp $ */
/* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */
/*
@@ -1747,9 +1747,9 @@ step6:
* Update window information.
* Don't look at window if no ACK: TAC's send garbage on first SYN.
*/
- if (((tiflags & TH_ACK) && SEQ_LT(tp->snd_wl1, th->th_seq)) ||
+ if ((tiflags & TH_ACK) && (SEQ_LT(tp->snd_wl1, th->th_seq) ||
(tp->snd_wl1 == th->th_seq && SEQ_LT(tp->snd_wl2, th->th_ack)) ||
- (tp->snd_wl2 == th->th_ack && tiwin > tp->snd_wnd)) {
+ (tp->snd_wl2 == th->th_ack && tiwin > tp->snd_wnd))) {
/* keep track of pure window updates */
if (tlen == 0 &&
tp->snd_wl2 == th->th_ack && tiwin > tp->snd_wnd)