]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Cloyce <cloyce.spradling@sun.com>
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 12 Aug 2009 12:07:38 +0000 (00:07 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 12 Aug 2009 12:07:38 +0000 (00:07 +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 1f4de9a0df340df49f1c75dd418293ad2b510c6d..278b413d46d9999facdcd21f74330ae4cd764091 100644 (file)
@@ -346,7 +346,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)