From 0bce271a1f082afd781ca55aaa02f3fa623d41d8 Mon Sep 17 00:00:00 2001 From: Guido van Rooij Date: Mon, 18 May 1998 17:07:58 +0000 Subject: [PATCH] Add some parenthesis for clarity and fix a bug Pointed out by: Garrett Wollmand --- sys/netinet/tcp_input.c | 4 ++-- sys/netinet/tcp_reass.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 2519ac3f7cee..578b109c63a9 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)tcp_input.c 8.12 (Berkeley) 5/24/95 - * $Id: tcp_input.c,v 1.74 1998/04/24 10:08:57 dg Exp $ + * $Id: tcp_input.c,v 1.75 1998/05/04 17:59:52 guido Exp $ */ #include "opt_tcpdebug.h" @@ -680,7 +680,7 @@ tcp_input(m, iphlen) * - otherwise do a normal 3-way handshake. */ if ((to.to_flag & TOF_CC) != 0) { - if (tp->t_state & TF_NOPUSH && + if (((tp->t_state & TF_NOPUSH) != 0) && taop->tao_cc != 0 && CC_GT(to.to_cc, taop->tao_cc)) { taop->tao_cc = to.to_cc; diff --git a/sys/netinet/tcp_reass.c b/sys/netinet/tcp_reass.c index 2519ac3f7cee..578b109c63a9 100644 --- a/sys/netinet/tcp_reass.c +++ b/sys/netinet/tcp_reass.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)tcp_input.c 8.12 (Berkeley) 5/24/95 - * $Id: tcp_input.c,v 1.74 1998/04/24 10:08:57 dg Exp $ + * $Id: tcp_input.c,v 1.75 1998/05/04 17:59:52 guido Exp $ */ #include "opt_tcpdebug.h" @@ -680,7 +680,7 @@ tcp_input(m, iphlen) * - otherwise do a normal 3-way handshake. */ if ((to.to_flag & TOF_CC) != 0) { - if (tp->t_state & TF_NOPUSH && + if (((tp->t_state & TF_NOPUSH) != 0) && taop->tao_cc != 0 && CC_GT(to.to_cc, taop->tao_cc)) { taop->tao_cc = to.to_cc;