]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Correct IPv4 over IPv6 test
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Fri, 14 May 2010 01:29:58 +0000 (03:29 +0200)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Fri, 14 May 2010 01:29:58 +0000 (03:29 +0200)
src/comm.cc

index f7499ececca6c31deea561d963c5a5d785fcd340..6a44e60e883ddd17df655d6f64fbe1eb08b06ec2 100644 (file)
@@ -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;
     }