]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3367: fix inverted check on host_strict_verify
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 4 Nov 2011 23:28:49 +0000 (12:28 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 4 Nov 2011 23:28:49 +0000 (12:28 +1300)
src/client_side_request.cc

index 03b54dd108f99a581a94330fde59969e28cb4259..3b0728a7a68d0811ba89864503daa68e4da3056a 100644 (file)
@@ -634,7 +634,7 @@ ClientRequestContext::hostHeaderVerify()
             // verify the destination DNS is one of the Host: headers IPs
             ipcache_nbgethostbyname(host, hostHeaderIpVerifyWrapper, this);
         }
-    } else if (Config.onoff.hostStrictVerify) {
+    } else if (!Config.onoff.hostStrictVerify) {
         debugs(85, 3, HERE << "validate skipped.");
         http->doCallouts();
     } else if (strlen(host) != strlen(http->request->GetHost())) {