]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2672. [bug] Don't enable searching in 'host' when doing reverse
authorMark Andrews <marka@isc.org>
Tue, 8 Sep 2009 23:28:40 +0000 (23:28 +0000)
committerMark Andrews <marka@isc.org>
Tue, 8 Sep 2009 23:28:40 +0000 (23:28 +0000)
                        lookups. [RT #20218]

CHANGES
bin/dig/host.c

diff --git a/CHANGES b/CHANGES
index fa03d53f9d8030ae5ae2d71143167480d4b1f710..fdefeee50ba8b42e2ba38f862a4b27834b52291c 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+2672.  [bug]           Don't enable searching in 'host' when doing reverse
+                       lookups. [RT #20218]
+
 2670.  [bug]           Unexpected connect failures failed to log enough
                        information to be useful. [RT #20205]
 
index 53672ef3206794a6529be53a968b28a26cb999cf..54655e906a33d7ecdaefb4810fe869d9678642a1 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: host.c,v 1.116.12.2 2009/05/06 23:46:49 tbox Exp $ */
+/* $Id: host.c,v 1.116.12.3 2009/09/08 23:28:40 marka Exp $ */
 
 /*! \file */
 
@@ -839,11 +839,10 @@ parse_args(isc_boolean_t is_batchfile, int argc, char **argv) {
        } else {
                strncpy(lookup->textname, hostname, sizeof(lookup->textname));
                lookup->textname[sizeof(lookup->textname)-1]=0;
+               usesearch = ISC_TRUE;
        }
        lookup->new_search = ISC_TRUE;
        ISC_LIST_APPEND(lookup_list, lookup, link);
-
-       usesearch = ISC_TRUE;
 }
 
 int