mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-05 09:27:43 +02:00
dname isroot and dellabel
git-svn-id: file:///svn/unbound/trunk@492 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
+2
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user