]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Fixup for previous fixup.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 13 Jan 2009 12:53:18 +0000 (12:53 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 13 Jan 2009 12:53:18 +0000 (12:53 +0000)
git-svn-id: file:///svn/unbound/trunk@1429 be551aaa-1e26-0410-a405-d3ace91eadb9

iterator/iterator.c

index 5f90310c8b91f53aa63bf2492f9b57d9110f60da..fdf3ebe3ad897d31cbf46cf6db2f8382f09f91b7 100644 (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;
                }
        }