]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
add comment
authorbert hubert <bert.hubert@netherlabs.nl>
Wed, 11 Apr 2018 08:24:04 +0000 (10:24 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 16 May 2018 12:15:47 +0000 (14:15 +0200)
(cherry picked from commit d04ac1081f9157bdc7a6c2fa630c4c50bef77515)

pdns/syncres.cc

index 73c8f809d3caf3dd632a613f1d36b12a98c22c48..f410ebad92b4236ca3020692650ce9eaac5cd25a 100644 (file)
@@ -122,8 +122,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))