+17 August 2011: Wouter
+ - Fix validation of . DS query.
+
10 August 2011: Wouter
- Fix python site-packages path to /usr/lib64.
- updated patch from Tom.
!nsec_has_type(nsec, LDNS_RR_TYPE_SOA)) {
return 0;
} else if(qinfo->qtype == LDNS_RR_TYPE_DS &&
- nsec_has_type(nsec, LDNS_RR_TYPE_SOA)) {
+ nsec_has_type(nsec, LDNS_RR_TYPE_SOA &&
+ !dname_is_root(qinfo->qname))) {
return 0;
}
dname_subdomain_c(nm, filter->zone))) {
/* for a type DS do not accept a zone equal to qname*/
if(qinfo->qtype == LDNS_RR_TYPE_DS &&
- query_dname_compare(qinfo->qname, nm) == 0)
+ query_dname_compare(qinfo->qname, nm) == 0 &&
+ !dname_is_root(qinfo->qname))
continue;
filter->zone = nm;
filter->zone_len = nmlen;
* If not type DS: matching nsec3 must not be a delegation.
*/
if(qinfo->qtype == LDNS_RR_TYPE_DS && qinfo->qname_len != 1
- && nsec3_has_type(rrset, rr, LDNS_RR_TYPE_SOA)) {
+ && nsec3_has_type(rrset, rr, LDNS_RR_TYPE_SOA &&
+ !dname_is_root(qinfo->qname))) {
verbose(VERB_ALGO, "proveNodata: apex NSEC3 "
"abused for no DS proof, bogus");
return sec_status_bogus;