Permalink
Browse files

limit mode 0 closest provable encloser to optout

  • Loading branch information...
1 parent bbc0bc5 commit 1ee7e22c8a9a77defd22734570e23e637cd5f6e2 @mind04 mind04 committed with mind04 Feb 28, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 pdns/packethandler.cc
@@ -607,7 +607,7 @@ 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 == 0 || mode == 1) && (hashed != before)) {
+ if (((mode == 0 && ns3rc.d_flags) || mode == 1) && (hashed != before)) {
DLOG(L<<"No matching NSEC3, do closest (provable) encloser"<<endl);
bool doBreak = false;

0 comments on commit 1ee7e22

Please sign in to comment.