From 54c9247ea38a1e48d3804cbff3377c2b0792ea09 Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Fri, 28 Feb 2014 01:07:07 +0100 Subject: [PATCH] fix for errata 3441 of RFC5155 --- modules/bindbackend/bindbackend2.cc | 2 +- pdns/packethandler.cc | 12 +++++++----- pdns/pdnssec.cc | 12 ++++++------ 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/modules/bindbackend/bindbackend2.cc b/modules/bindbackend/bindbackend2.cc index 169232795e..460ef6898f 100644 --- a/modules/bindbackend/bindbackend2.cc +++ b/modules/bindbackend/bindbackend2.cc @@ -675,7 +675,7 @@ void Bind2Backend::doEmptyNonTerminals(shared_ptr stage, int id, bool nse while(chopOff(shorter)) { - if(!qnames.count(shorter) && !nonterm.count(shorter)) + if(!qnames.count(shorter)) { if(!(maxent)) { diff --git a/pdns/packethandler.cc b/pdns/packethandler.cc index 1bcf238251..e970a649c8 100644 --- a/pdns/packethandler.cc +++ b/pdns/packethandler.cc @@ -618,16 +618,18 @@ void PacketHandler::addNSEC3(DNSPacket *p, DNSPacket *r, const string& target, c getNSEC3Hashes(narrow, sd.db, sd.domain_id, hashed, false, unhashed, before, after, mode); - if (mode == 1 && (hashed != before)) { - DLOG(L<<"No matching NSEC3 for DS, do closest (provable) encloser"<(shorter, auth)); --maxent; } else if (auth) nonterm[shorter]=true; - - if (!delnonterm.count(shorter)) - insnonterm.insert(shorter); - else - delnonterm.erase(shorter); } } } -- 2.47.3