From df96fe1596d5d9c930db211854ac8496cf135d68 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 1 Jul 2005 03:55:28 +0000 Subject: [PATCH] 1892. [bug] dnssec-signzone, dnssec-keygen: handle negative debug levels. [RT #14962] --- CHANGES | 3 +++ bin/dnssec/dnssectool.c | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index bae3ad59a6..20fcb40cc6 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +1892. [bug] dnssec-signzone, dnssec-keygen: handle negative debug + levels. [RT #14962] + 1891. [func] Limit the number of recursive clients that can be waiting for a single query () to resolve. New options clients-per-query and diff --git a/bin/dnssec/dnssectool.c b/bin/dnssec/dnssectool.c index 61af0d55b2..4f95540fc4 100644 --- a/bin/dnssec/dnssectool.c +++ b/bin/dnssec/dnssectool.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: dnssectool.c,v 1.40.18.2 2005/04/29 00:15:21 marka Exp $ */ +/* $Id: dnssectool.c,v 1.40.18.3 2005/07/01 03:55:28 marka Exp $ */ /*! \file */ @@ -151,6 +151,8 @@ setup_logging(int verbose, isc_mem_t *mctx, isc_log_t **logp) { isc_log_t *log = NULL; int level; + if (verbose < 0) + verbose = 0; switch (verbose) { case 0: /*