mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-29 13:07:50 +00:00
[1802] Set the RESULT_NSEC_SIGNED flag in in-memory
When we return a negative answer or wildcard, we return RESULT_NSEC_SIGNED for NSEC signed zones, similarly to NSEC3-signed ones.
This commit is contained in:
parent
1ff3eb1912
commit
37227b85bf
@ -1215,9 +1215,13 @@ struct InMemoryZoneFinder::InMemoryZoneFinderImpl {
|
||||
if (wild) {
|
||||
flags = flags | RESULT_WILDCARD;
|
||||
}
|
||||
if ((code == NXRRSET || code == NXDOMAIN || wild) &&
|
||||
zone_data_->nsec3_data_) {
|
||||
flags = flags | RESULT_NSEC3_SIGNED;
|
||||
if (code == NXRRSET || code == NXDOMAIN || wild) {
|
||||
if (zone_data_->nsec3_data_) {
|
||||
flags = flags | RESULT_NSEC3_SIGNED;
|
||||
}
|
||||
if (zone_data_->nsec_signed_) {
|
||||
flags = flags | RESULT_NSEC_SIGNED;
|
||||
}
|
||||
}
|
||||
return (RBNodeResultContext(code, rrset, flags, node));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user