From: Henrik Nordstrom Date: Fri, 14 May 2010 01:29:58 +0000 (+0200) Subject: Correct IPv4 over IPv6 test X-Git-Tag: SQUID_3_1_4~26^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ef5e6d01aab01446d9d59bbdc3c5df017115345e;p=thirdparty%2Fsquid.git Correct IPv4 over IPv6 test --- diff --git a/src/comm.cc b/src/comm.cc index f7499ececc..6a44e60e88 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -1244,7 +1244,7 @@ comm_connect_addr(int sock, const IpAddress &address) * but needs carefull cross-platform verification, and verifying the address * condition here is simple. */ - if (F->local_addr.IsIPv4() != address.IsIPv4()) { + if (!F->local_addr.IsIPv4() && address.IsIPv4()) { return COMM_ERR_PROTOCOL; }