]> granicus.if.org Git - pdns/commitdiff
auth: small optimization in the rectify code for optout narrow zones
authorKees Monshouwer <mind04@monshouwer.org>
Fri, 15 Mar 2019 11:14:57 +0000 (12:14 +0100)
committermind04 <mind04@monshouwer.org>
Fri, 15 Mar 2019 11:14:57 +0000 (12:14 +0100)
pdns/dbdnsseckeeper.cc

index 1eef0fc882b9f98faef01492d52d9f270a771be0..e4aa0b52821217f6dc738ce08c1de4206e2bafb8 100644 (file)
@@ -692,7 +692,7 @@ bool DNSSECKeeper::rectifyZone(const DNSName& zone, string& error, string& info,
   }
 
   set<DNSName> nsec3set;
-  if (haveNSEC3) {
+  if (haveNSEC3 && (!narrow || !isOptOut)) {
     for (auto &loopRR: rrs) {
       bool skip=false;
       DNSName shorter = loopRR.qname;