From: Amos Jeffries Date: Fri, 14 Aug 2009 05:17:52 +0000 (+1200) Subject: Author: Cloyce X-Git-Tag: SQUID_3_0_STABLE19~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a66e52bf24bd1c92de1cac75f28dfa46bad47dd4;p=thirdparty%2Fsquid.git Author: Cloyce 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. --- diff --git a/src/dns_internal.cc b/src/dns_internal.cc index 3f38a479ed..4348464a2f 100755 --- a/src/dns_internal.cc +++ b/src/dns_internal.cc @@ -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)