From dbd335175ff6cd81cb1ca10ac78fc65f27f0115b Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 14 Feb 2007 01:25:06 +0000 Subject: [PATCH] 2136. [bug] nslookup/host looped if there was no search list and the host didn't exist. [RT #16657] --- CHANGES | 3 +++ bin/dig/dighost.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 99ee164ef5..e140d61822 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] + 2132. [bug] Missing unlock on out of memory in dns_dispatchmgr_setudp(). diff --git a/bin/dig/dighost.c b/bin/dig/dighost.c index 4d1b7c6cd8..02e7fc2e4c 100644 --- a/bin/dig/dighost.c +++ b/bin/dig/dighost.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: dighost.c,v 1.221.2.19.2.37 2006/12/07 06:07:56 marka Exp $ */ +/* $Id: dighost.c,v 1.221.2.19.2.38 2007/02/14 01:25:06 marka Exp $ */ /* * Notice to programmers: Do not use this code as an example of how to @@ -1526,7 +1526,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)