From: Mark Andrews Date: Thu, 3 Mar 2005 04:46:18 +0000 (+0000) Subject: 1818. [bug] 'named-checkconf -z' triggered an INSIST. [RT #13599] X-Git-Tag: v9.2.6b1~181^2~25 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=77b101ced9801cdb226919784bfc1aa0650ace6a;p=thirdparty%2Fbind9.git 1818. [bug] 'named-checkconf -z' triggered an INSIST. [RT #13599] --- diff --git a/CHANGES b/CHANGES index 7cf92946475..04c9acdda26 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,5 @@ +1818. [bug] 'named-checkconf -z' triggered an INSIST. [RT #13599] + 1817. [placeholder] rt13587 1816. [placeholder] rt13597 diff --git a/bin/check/named-checkconf.c b/bin/check/named-checkconf.c index 5c4ae7ba500..5cb55d47821 100644 --- a/bin/check/named-checkconf.c +++ b/bin/check/named-checkconf.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: named-checkconf.c,v 1.28 2004/03/05 04:57:20 marka Exp $ */ +/* $Id: named-checkconf.c,v 1.29 2005/03/03 04:46:18 marka Exp $ */ #include @@ -25,6 +25,8 @@ #include #include +#include +#include #include #include #include @@ -35,6 +37,7 @@ #include +#include #include #include @@ -203,6 +206,7 @@ main(int argc, char **argv) { isc_mem_t *mctx = NULL; isc_result_t result; int exit_status = 0; + isc_entropy_t *ectx = NULL; isc_boolean_t load_zones = ISC_FALSE; while ((c = isc_commandline_parse(argc, argv, "djt:vz")) != EOF) { @@ -252,6 +256,10 @@ main(int argc, char **argv) { RUNTIME_CHECK(setup_logging(mctx, &logc) == ISC_R_SUCCESS); + RUNTIME_CHECK(isc_entropy_create(mctx, &ectx) == ISC_R_SUCCESS); + RUNTIME_CHECK(isc_hash_create(mctx, ectx, DNS_NAME_MAXWIRE) + == ISC_R_SUCCESS); + dns_result_register(); RUNTIME_CHECK(cfg_parser_create(mctx, logc, &parser) == ISC_R_SUCCESS); @@ -280,6 +288,9 @@ main(int argc, char **argv) { isc_log_destroy(&logc); + isc_hash_destroy(); + isc_entropy_detach(&ectx); + isc_mem_destroy(&mctx); return (exit_status);