Fixup for previous fixup.

git-svn-id: file:///svn/unbound/trunk@1429 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2009-01-13 12:53:18 +00:00
parent c76429ab57
commit a3ff369cfd

View file

@ -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;
}
}