]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Merge pull request #7523 from mind04/non-dnssec
authorPieter Lexis <pieterlexis@users.noreply.github.com>
Thu, 2 May 2019 11:41:34 +0000 (13:41 +0200)
committerGitHub <noreply@github.com>
Thu, 2 May 2019 11:41:34 +0000 (13:41 +0200)
disable dnssec pre-processing for non dnssec zones and avoid a lot of isSecuredZone() calls

1  2 
pdns/packethandler.cc

index 934c32e084ddce5a3ef1a5e0d066f259287e996a,944583606d91a3763ce6b4b95466e1764ef2619c..f626ff95f84337b5328b956e25356e6de4a3cfe2
@@@ -1000,10 -996,11 +996,11 @@@ void PacketHandler::makeNOError(DNSPack
    rr.auth = 1;
    r->addRecord(rr);
  
-   if(d_dk.isSecuredZone(sd.qname))
+   if(d_dnssec) {
      addNSECX(p, r, target, wildcard, sd.qname, mode);
+   }
  
 -  S.ringAccount("noerror-queries",p->qdomain.toLogString()+"/"+p->qtype.getName());
 +  S.ringAccount("noerror-queries", p->qdomain, p->qtype);
  }