}
dns_rdataset_current(nsecset, &rdata);
+#ifdef notyet
+ if (!dns_nsec_typepresent(&rdata, dns_rdatatype_rrsig) ||
+ !dns_nsec_typepresent(&rdata, dns_rdatatype_nsec))
+ {
+ (*logit)(arg, ISC_LOG_DEBUG(3),
+ "NSEC missing RRSIG and/or NSEC from type map");
+ return (ISC_R_IGNORE);
+ }
+#endif
+
(*logit)(arg, ISC_LOG_DEBUG(3), "looking for relevant NSEC");
relation = dns_name_fullcompare(name, nsecname, &order, &olabels);
goto cleanup;
}
+ /*
+ * If NSEC or RRSIG are missing from the type map
+ * reject the NSEC RRset.
+ */
+ if (!dns_nsec_requiredtypespresent(qctx->rdataset)) {
+ goto cleanup;
+ }
+
/*
* Check that we have the correct NOQNAME NSEC record.
*/