]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2136. [bug] nslookup/host looped if there was no search list
authorMark Andrews <marka@isc.org>
Wed, 14 Feb 2007 01:19:52 +0000 (01:19 +0000)
committerMark Andrews <marka@isc.org>
Wed, 14 Feb 2007 01:19:52 +0000 (01:19 +0000)
                        and the host didn't exist. [RT #16657]

CHANGES
bin/dig/dighost.c

diff --git a/CHANGES b/CHANGES
index 1b168b2b1a2a67a6ffb60db073526750492770b0..fab81a413c5ae6abf3a86920134d2307d1e175d3 100644 (file)
--- 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]
index 02d819beb666febc6c0eba68a70a253e7615f904..452d3e8733e3f3658736a4dba1d6714ac7a0674b 100644 (file)
@@ -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)