]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1915. [bug] dig +ndots was broken. [RT #15215]
authorMark Andrews <marka@isc.org>
Thu, 8 Sep 2005 23:59:45 +0000 (23:59 +0000)
committerMark Andrews <marka@isc.org>
Thu, 8 Sep 2005 23:59:45 +0000 (23:59 +0000)
CHANGES
bin/dig/dighost.c

diff --git a/CHANGES b/CHANGES
index 1ed6f2b4c5925a95246ef2fab48a0718bfaa6565..bde9363751d0fd1a8ece5d30657c1ed2b96eea5c 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+1915.  [bug]           dig +ndots was broken. [RT #15215]
+
 1914.  [protocol]      DS is required to accept mnemonic algorithms
                        (RFC 4034).  Still emit numeric algorithms for
                        compatability with RFC 3658. [RT #15354]
index ee8792efd399cba954192c188403541ee1393f7c..cbff565c68814a827b4d09870905ffacd1d7007c 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: dighost.c,v 1.284 2005/09/01 02:24:48 marka Exp $ */
+/* $Id: dighost.c,v 1.285 2005/09/08 23:59:45 marka Exp $ */
 
 /*! \file
  *  \note
@@ -970,8 +970,10 @@ setup_system(void) {
                }
        }
                        
-       ndots = lwconf->ndots;
-       debug("ndots is %d.", ndots);
+       if (ndots == -1) {
+               ndots = lwconf->ndots;
+               debug("ndots is %d.", ndots);
+       }
 
        /* If we don't find a nameserver fall back to localhost */
        if (lwconf->nsnext == 0) {