]> git.ipfire.org Git - thirdparty/pdns.git/commit
rec: Fix the aggressive cache returning duplicated NSEC3 records 10701/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 8 Sep 2021 09:11:53 +0000 (11:11 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 8 Sep 2021 09:11:53 +0000 (11:11 +0200)
commiteca47c4dd85d2711ebc26767dfa78bdbce2c7f16
tree0fb7dd45500bde2344d1119b8b15bb5e6f737b0a
parent00b026eb17a316550530f1fa598ddb60e654d9f2
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.
pdns/recursordist/aggressive_nsec.cc
pdns/recursordist/test-aggressive_nsec_cc.cc
pdns/recursordist/test-syncres_cc.cc
pdns/recursordist/test-syncres_cc.hh