From d04ac1081f9157bdc7a6c2fa630c4c50bef77515 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Wed, 11 Apr 2018 10:24:04 +0200 Subject: [PATCH] add comment --- pdns/syncres.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) -- 2.47.2