]> git.ipfire.org Git - thirdparty/pdns.git/commit
rec: Fix the aggressive cache returning duplicated NSEC3 records 10717/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 8 Sep 2021 09:11:53 +0000 (11:11 +0200)
committerOtto <otto.moerbeek@open-xchange.com>
Mon, 13 Sep 2021 07:42:09 +0000 (09:42 +0200)
commitaab02aae8c2d8defc041e87441ee5f8fdb25c622
treee8c08966c0c3e449028539cd6b5716b31d1deeaf
parent8879474e4cd47dfc47129e9b1b9f604388ad9e4f
rec: Fix the aggressive cache returning duplicated NSEC3 records

No need to include the same record twice when it provides, at the same
time, a proof that the closest encloser exists and that the next closer
does not, and/or that the wildcard does not exist either.
This happens right away in a zone with a single record, like reported
by Matt Nordhoff, but it might happen in other cases as well.

(cherry picked from commit eca47c4dd85d2711ebc26767dfa78bdbce2c7f16)
pdns/recursordist/aggressive_nsec.cc
pdns/recursordist/test-aggressive_nsec_cc.cc
pdns/recursordist/test-syncres_cc.cc
pdns/recursordist/test-syncres_cc.hh