From e23918606a883810a6e69516e47e2f03c9b85d24 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Thu, 13 Aug 2009 00:07:38 +1200 Subject: [PATCH] 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. --- 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 1f4de9a0df..278b413d46 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.3