DNSResourceRecord rr;
set<DNSName> qnames, nsset, dsnames, insnonterm, delnonterm;
map<DNSName,bool> nonterm;
- bool doent=true;
vector<DNSResourceRecord> rrs;
while(sd.db->get(rr)) {
dsnames.insert(rr.qname);
}
else
- if(doent)
- delnonterm.insert(rr.qname);
+ delnonterm.insert(rr.qname);
}
NSEC3PARAMRecordContent ns3pr;
sd.db->startTransaction(zone, -1);
bool realrr=true;
+ bool doent=true;
uint32_t maxent = ::arg().asNum("max-ent-entries");
dononterm:;
DNSName shorter(zrr.dr.d_name);
do {
if (shorter==target) // apex is always auth
- continue;
+ break;
if(nsset.count(shorter) && !(zrr.dr.d_name==shorter && zrr.dr.d_type == QType::DS)) {
zrr.auth=false;
- continue;
+ break;
}
} while(shorter.chopOff());
}
for(const auto& nt : nonterm) {
DNSZoneRecord zrr;
zrr.dr.d_name=nt;
- zrr.dr.d_type=0; // was TYPE0
+ zrr.dr.d_type=QType::ENT;
zrr.auth=true;
zrrs.push_back(zrr);
}