From: Mark Andrews Date: Thu, 8 Sep 2005 23:59:45 +0000 (+0000) Subject: 1915. [bug] dig +ndots was broken. [RT #15215] X-Git-Tag: v9.4.0a1~32^2~3 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=cf0bcc2c80ca99f1e6e53dcdd0eba03fe70723df;p=thirdparty%2Fbind9.git 1915. [bug] dig +ndots was broken. [RT #15215] --- diff --git a/CHANGES b/CHANGES index 1ed6f2b4c59..bde9363751d 100644 --- 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] diff --git a/bin/dig/dighost.c b/bin/dig/dighost.c index ee8792efd39..cbff565c688 100644 --- a/bin/dig/dighost.c +++ b/bin/dig/dighost.c @@ -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) {