2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 13:37:55 +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:
Michal 'vorner' Vaner
2012-05-03 13:19:52 +02:00
parent 1ff3eb1912
commit 37227b85bf

View File

@@ -1215,10 +1215,14 @@ struct InMemoryZoneFinder::InMemoryZoneFinderImpl {
if (wild) {
flags = flags | RESULT_WILDCARD;
}
if ((code == NXRRSET || code == NXDOMAIN || wild) &&
zone_data_->nsec3_data_) {
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));
}