From: Henrik Nordstrom Date: Sat, 8 Aug 2009 22:08:34 +0000 (+0200) Subject: Bug #2739: DNS resolver option ndots can't be parsed from resolv.conf X-Git-Tag: SQUID_3_2_0_1~808 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2c2da7d3c479c7910b45d2de413cee57d0058d6b;p=thirdparty%2Fsquid.git Bug #2739: DNS resolver option ndots can't be parsed from resolv.conf Author: Cloyce 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 c3ca3df877..d4e9eb6a20 100644 --- a/src/dns_internal.cc +++ b/src/dns_internal.cc @@ -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)