From: bert hubert Date: Fri, 4 Apr 2014 05:42:16 +0000 (+0200) Subject: improve case insensitivity of packetcache cleaning, plus silence coverity warning... X-Git-Tag: rec-3.6.0-rc1~85 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7679f7377b83e7eeadf120030a45b504bd6712ed;p=thirdparty%2Fpdns.git improve case insensitivity of packetcache cleaning, plus silence coverity warning (possibly correct) --- diff --git a/pdns/dns.cc b/pdns/dns.cc index f726241bd4..34999b550a 100644 --- a/pdns/dns.cc +++ b/pdns/dns.cc @@ -101,7 +101,7 @@ bool dnspacketLessThan(const std::string& a, const std::string& b) int result=0; unsigned int n; for(n = 0; n < aLabelLen && n < bLabelLen; ++n) - if((result = aSafe[aPos + n] - bSafe[bPos +n])) + if((result = aSafe[aPos + n] - bSafe[bPos +n])) // XXX this should perhaps be dns_tolower break; // cerr<<"Done loop, result="<