Delegpt structures checked for duplicates always.
No more nameserver lookups generated when depth is full anyway.
git-svn-id: file:///svn/unbound/trunk@2219
be551aaa-1e26-0410-a405-
d3ace91eadb9
+19 August 2010: Wouter
+ - Fix bug#321: resolution of rs.ripe.net artifacts with 0x20.
+ Delegpt structures checked for duplicates always.
+ No more nameserver lookups generated when depth is full anyway.
+
18 August 2010: Wouter
- Fix bug#322: configure does not respect CFLAGS on Solaris.
Pass CFLAGS="-xO4 -xtarget=generic" on the configure command line
continue;
if(ntohs(s->rk.type) == LDNS_RR_TYPE_A) {
- if(!delegpt_add_rrset_A(dp, region, s, 0, 0))
+ if(!delegpt_add_rrset_A(dp, region, s, 0, 1))
return NULL;
} else if(ntohs(s->rk.type) == LDNS_RR_TYPE_AAAA) {
- if(!delegpt_add_rrset_AAAA(dp, region, s, 0, 0))
+ if(!delegpt_add_rrset_AAAA(dp, region, s, 0, 1))
return NULL;
}
}
int missing;
int toget = 0;
+ if(iq->depth == ie->max_dependency_depth)
+ return 0;
+
iter_mark_cycle_targets(qstate, iq->dp);
missing = (int)delegpt_count_missing_targets(iq->dp);
log_assert(maxtargets != 0); /* that would not be useful */
return 0; /* and wait for them */
}
}
+ if(iq->depth == ie->max_dependency_depth) {
+ verbose(VERB_QUERY, "maxdepth and need more nameservers, fail");
+ return error_response_cache(qstate, id, LDNS_RCODE_SERVFAIL);
+ }
/* mark cycle targets for parent-side lookups */
iter_mark_pside_cycle_targets(qstate, iq->dp);
/* see if we can issue queries to get nameserver addresses */