1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Add some parenthesis for clarity and fix a bug

Pointed out by: Garrett Wollmand
This commit is contained in:
Guido van Rooij 1998-05-18 17:07:58 +00:00
parent e6daac8be7
commit 0bce271a1f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=36159
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;