From: Mark Andrews Date: Wed, 14 Feb 2007 01:19:52 +0000 (+0000) Subject: 2136. [bug] nslookup/host looped if there was no search list X-Git-Tag: v9.5.0a2~68 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=1e70c9a36639bb1e8d537dcefa3cd12a7bb39db0;p=thirdparty%2Fbind9.git 2136. [bug] nslookup/host looped if there was no search list and the host didn't exist. [RT #16657] --- diff --git a/CHANGES b/CHANGES index 1b168b2b1a2..fab81a413c5 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +2136. [bug] nslookup/host looped if there was no search list + and the host didn't exist. [RT #16657] + 2135. [bug] Uninitialised rdataset in sdlz.c. [RT# 16656] 2134. [func] Additional statistics support. [RT #16666] diff --git a/bin/dig/dighost.c b/bin/dig/dighost.c index 02d819beb66..452d3e8733e 100644 --- a/bin/dig/dighost.c +++ b/bin/dig/dighost.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: dighost.c,v 1.297 2006/12/07 05:52:15 marka Exp $ */ +/* $Id: dighost.c,v 1.298 2007/02/14 01:19:52 marka Exp $ */ /*! \file * \note @@ -1635,7 +1635,7 @@ next_origin(dns_message_t *msg, dig_query_t *query) { if (query->lookup->origin == NULL && query->lookup->need_search) { lookup = requeue_lookup(query->lookup, ISC_TRUE); lookup->origin = ISC_LIST_HEAD(search_list); - query->lookup->need_search = ISC_FALSE; + lookup->need_search = ISC_FALSE; } else { search = ISC_LIST_NEXT(query->lookup->origin, link); if (search == NULL && query->lookup->done_as_is)