From d9b7cc1c8d2904afd667322ef6cf434bfcedbee5 Mon Sep 17 00:00:00 2001 From: Jonathan Lemon Date: Tue, 22 Jan 2002 17:54:28 +0000 Subject: [PATCH] The ENDPTS_EQ macro was comparing the one of the fports to itself. Fix. Submitted by: emy@boostworks.com --- sys/netinet/tcp_syncache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c index bf6432bf69f7..668573c5fd33 100644 --- a/sys/netinet/tcp_syncache.c +++ b/sys/netinet/tcp_syncache.c @@ -160,7 +160,7 @@ static MALLOC_DEFINE(M_SYNCACHE, "syncache", "TCP syncache"); (inc)->inc_fport ^ (inc)->inc_lport) & mask) #define ENDPTS_EQ(a, b) ( \ - (a)->ie_fport == (a)->ie_fport && \ + (a)->ie_fport == (b)->ie_fport && \ (a)->ie_lport == (b)->ie_lport && \ (a)->ie_faddr.s_addr == (b)->ie_faddr.s_addr && \ (a)->ie_laddr.s_addr == (b)->ie_laddr.s_addr \