]> 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:23:45 +0000 (01:23 +0000)
committerMark Andrews <marka@isc.org>
Wed, 14 Feb 2007 01:23:45 +0000 (01:23 +0000)
                        and the host didn't exist. [RT #16657]

CHANGES
bin/dig/dighost.c

diff --git a/CHANGES b/CHANGES
index fe1ee0c4474c9ec3415e6302b7199b7d1dc5fbdf..572af30fc0697a1fd13ea32faa93fb0cf56e080f 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]
+
 2132.  [bug]           Missing unlock on out of memory in
                        dns_dispatchmgr_setudp().
 
index 3b542000f2c04a7643f9c858c31054e886946c74..b271035fe05e287a95fc02319da378262c55d347 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: dighost.c,v 1.221.2.35 2006/12/07 06:07:31 marka Exp $ */
+/* $Id: dighost.c,v 1.221.2.36 2007/02/14 01:23:45 marka Exp $ */
 
 /*
  * Notice to programmers:  Do not use this code as an example of how to
@@ -1180,7 +1180,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)