fixup DS test for apex validation of NODATA.

git-svn-id: file:///svn/unbound/branches/support-1.0@1177 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards
2008-08-05 10:54:27 +00:00
parent f91066ba47
commit d5ac360be4
2 changed files with 5 additions and 1 deletions
+3
View File
@@ -1,3 +1,6 @@
5 August 2008: Wouter
- fixup DS test so apex nodata works again (from trunk).
4 August 2008: Wouter
- Bug #201 fixup from trunk; fixes segfault on exit cleanup
- iana port nrs updated.
+2 -1
View File
@@ -350,7 +350,8 @@ int nsec_proves_nodata(struct ub_packed_rrset_key* nsec,
nsec_has_type(nsec, LDNS_RR_TYPE_NS) &&
!nsec_has_type(nsec, LDNS_RR_TYPE_SOA)) {
return 0;
} else if(nsec_has_type(nsec, LDNS_RR_TYPE_SOA)) { /* for DS type */
} else if(qinfo->qtype == LDNS_RR_TYPE_DS &&
nsec_has_type(nsec, LDNS_RR_TYPE_SOA)) {
return 0;
}