mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 22:45:39 +00:00
Add dns_nsec_requiredtypespresent
checks an NSEC rdataset to ensure that both NSEC and RRSIG are present in the type map. These types are required for the NSEC to be valid
This commit is contained in:
committed by
Petr Špaček
parent
571f3af6e8
commit
8ff2c133b5
@@ -5572,6 +5572,15 @@ answer_response:
|
||||
continue;
|
||||
}
|
||||
|
||||
/*
|
||||
* Don't cache NSEC if missing NSEC or RRSIG types.
|
||||
*/
|
||||
if (rdataset->type == dns_rdatatype_nsec &&
|
||||
!dns_nsec_requiredtypespresent(rdataset))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
/*
|
||||
* Don't cache "white lies" but do cache
|
||||
* "black lies".
|
||||
|
Reference in New Issue
Block a user