mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
fixup DS test for apex validation of NODATA.
git-svn-id: file:///svn/unbound/trunk@1177 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
144d35120c
commit
9d068a12f5
2 changed files with 5 additions and 1 deletions
|
|
@ -1,3 +1,6 @@
|
||||||
|
5 August 2008: Wouter
|
||||||
|
- fixup DS test so apex nodata works again.
|
||||||
|
|
||||||
4 August 2008: Wouter
|
4 August 2008: Wouter
|
||||||
- iana port update.
|
- iana port update.
|
||||||
- TODO update.
|
- TODO update.
|
||||||
|
|
|
||||||
|
|
@ -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_NS) &&
|
||||||
!nsec_has_type(nsec, LDNS_RR_TYPE_SOA)) {
|
!nsec_has_type(nsec, LDNS_RR_TYPE_SOA)) {
|
||||||
return 0;
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue