mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
Fixup for previous fixup.
git-svn-id: file:///svn/unbound/trunk@1429 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
c76429ab57
commit
a3ff369cfd
1 changed files with 5 additions and 1 deletions
|
|
@ -1424,11 +1424,15 @@ processQueryResponse(struct module_qstate* qstate, struct iter_qstate* iq,
|
|||
iq->response->rep, iq->response->rep->an_numrrsets,
|
||||
iq->response->rep->an_numrrsets
|
||||
+ iq->response->rep->ns_numrrsets);
|
||||
if(!ns) find_NS(iq->response->rep, 0,
|
||||
if(!ns) ns = find_NS(iq->response->rep, 0,
|
||||
iq->response->rep->an_numrrsets);
|
||||
if(!ns || !dname_strict_subdomain_c(ns->rk.dname, iq->dp->name)
|
||||
|| !dname_subdomain_c(iq->qchase.qname, ns->rk.dname)){
|
||||
verbose(VERB_ALGO, "bad referral, throwaway");
|
||||
if(!ns) log_info("no ns");
|
||||
log_query_info(0, "qchase", &iq->qchase);
|
||||
log_nametypeclass(0, "dp", iq->dp->name, 0, 0);
|
||||
log_nametypeclass(0, "ns", ns->rk.dname, 0, 0);
|
||||
type = RESPONSE_TYPE_THROWAWAY;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue