From: Wouter Wijngaards Date: Tue, 13 Jan 2009 12:45:02 +0000 (+0000) Subject: Fixup for qtype NS. X-Git-Tag: release-1.2.1~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c76429ab57819446de2f78eb8a735d98af3ca09a;p=thirdparty%2Funbound.git Fixup for qtype NS. git-svn-id: file:///svn/unbound/trunk@1428 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/doc/Changelog b/doc/Changelog index 2ab77d5fb..c1847b842 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,5 +1,6 @@ 13 January 2009: Wouter - fixed bug in lameness marking, removed printouts. + - find NS rrset more cleanly for qtype NS. 12 January 2009: Wouter - fixed bug in infrastructure lameness cache, did not lowercase diff --git a/iterator/iterator.c b/iterator/iterator.c index 522bed7cc..5f90310c8 100644 --- a/iterator/iterator.c +++ b/iterator/iterator.c @@ -1424,6 +1424,8 @@ 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, + 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");