]> granicus.if.org Git - pdns/commitdiff
add comment
authorbert hubert <bert.hubert@netherlabs.nl>
Wed, 11 Apr 2018 08:24:04 +0000 (10:24 +0200)
committerbert hubert <bert.hubert@netherlabs.nl>
Wed, 11 Apr 2018 08:24:04 +0000 (10:24 +0200)
pdns/syncres.cc

index 4415c59cf7d87b45808eb3cb55ee44730a090883..526b404d834ab9b58e86e9888445e9fe304b5749 100644 (file)
@@ -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))