From 2a8b9d7710314a48c66705afc84d1a50e626053c Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Sat, 19 May 2018 14:58:31 +0200 Subject: [PATCH] pdnsutil: occlusion check improvements --- pdns/pdnsutil.cc | 52 +++++++++++++++++++----------------------------- 1 file changed, 21 insertions(+), 31 deletions(-) diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 59f5955b0..70a190d0f 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -244,7 +244,7 @@ int checkZone(DNSSECKeeper &dk, UeberBackend &B, const DNSName& zone, const vect bool presigned=dk.isPresigned(zone); bool validKeys=dk.checkKeys(zone); - uint64_t numrecords=0, numerrors=0, numwarnings=0; + uint64_t numerrors=0, numwarnings=0; if (haveNSEC3) { if(isSecure && zone.wirelength() > 222) { @@ -292,7 +292,7 @@ int checkZone(DNSSECKeeper &dk, UeberBackend &B, const DNSName& zone, const vect bool hasNsAtApex = false; set tlsas, cnames, noncnames, glue, checkglue; - set > recs, checkOcclusion; + set > checkOcclusion; set recordcontents; map ttl; @@ -310,17 +310,7 @@ int checkZone(DNSSECKeeper &dk, UeberBackend &B, const DNSName& zone, const vect else records=*suppliedrecords; - for(auto rr : records) { // we modify this - // if(!rr.qtype.getCode()) { - // if(rr.content.length()) { - // cout<<"[Error] ENT (or unknown type) has content: "<