From 2c2da7d3c479c7910b45d2de413cee57d0058d6b Mon Sep 17 00:00:00 2001 From: Henrik Nordstrom Date: Sun, 9 Aug 2009 00:08:34 +0200 Subject: [PATCH] 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. --- src/dns_internal.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.2