From a66e52bf24bd1c92de1cac75f28dfa46bad47dd4 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Fri, 14 Aug 2009 17:17:52 +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 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) -- 2.47.2