From: bert hubert Date: Wed, 11 Apr 2018 08:24:04 +0000 (+0200) Subject: add comment X-Git-Tag: dnsdist-1.3.1~166^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F6467%2Fhead;p=thirdparty%2Fpdns.git add comment --- diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 4415c59cf7..526b404d83 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -124,8 +124,8 @@ int SyncRes::beginResolve(const DNSName &qname, const QType &qtype, uint16_t qcl d_wasOutOfBand=false; if (doSpecialNamesResolve(qname, qtype, qclass, ret)) { - d_queryValidationState = Insecure; - return 0; + d_queryValidationState = Insecure; // this could fool our stats into thinking a validation took place + return 0; // so do check before updating counters (we do now) } if( (qtype.getCode() == QType::AXFR) || (qtype.getCode() == QType::IXFR) || (qtype.getCode() == QType::RRSIG) || (qtype.getCode() == QType::NSEC3))