dname isroot and dellabel

git-svn-id: file:///svn/unbound/trunk@492 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards
2007-08-06 11:06:00 +00:00
parent 44560e40ea
commit 4eaa855db9
6 changed files with 77 additions and 7 deletions
+2 -4
View File
@@ -643,11 +643,9 @@ processInitRequest(struct module_qstate* qstate, struct iter_qstate* iq,
delnamelen = iq->qchase.qname_len;
}
if((iq->qchase.qtype == LDNS_RR_TYPE_DS || iq->refetch_glue)
&& delname[0] != 0) {
&& !dname_is_root(delname)) {
/* do not adjust root label, remove first label from delname */
size_t lablen = delname[0] + 1;
delname += lablen;
delnamelen -= lablen;
dname_remove_label(&delname, &delnamelen);
}
/* Lookup the delegation in the cache. If null, then the cache needs