in practice the DNSSEC option is provided in many cases, considering
the common default behavior of widely deployed resolvers, while not many
zones are actually not signed at all in the first place (much less whether
it's NSEC or NSEC3). so in many cases we should simply be able to stop the
condition check with the nsec_signed.
ZoneData::getClosestNSEC(RBTreeNodeChain<Domain>& node_path,
ZoneFinder::FindOptions options) const
{
- if ((options & ZoneFinder::FIND_DNSSEC) == 0 || !nsec_signed_) {
+ if (!nsec_signed_ || (options & ZoneFinder::FIND_DNSSEC) == 0) {
return (ConstRBNodeRRsetPtr());
}