]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Cloyce <cloyce.spradling@sun.com>
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 14 Aug 2009 05:17:52 +0000 (17:17 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 14 Aug 2009 05:17:52 +0000 (17:17 +1200)
Bug 2739: DNS resolver option ndots can't be parsed from resolv.conf

A small logic error (probably a typo) in dns_internal.cc prevents squid from
properly reading the ndots option from resolv.conf.

The attached trivial patch fixes the problem.

src/dns_internal.cc

index 3f38a479ed5a01cc5e8854f93d0d9c04c0fb6bb6..4348464a2f91f5515603e7b8117a4a881cda8cc5 100755 (executable)
@@ -347,7 +347,7 @@ idnsParseResolvConf(void)
                 if (NULL == t)
                     continue;
 
-                if (strncmp(t, "ndots:", 6) != 0) {
+                if (strncmp(t, "ndots:", 6) == 0) {
                     ndots = atoi(t + 6);
 
                     if (ndots < 1)