]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix assertion failure when checking named-checkconf version
authorOndřej Surý <ondrej@isc.org>
Mon, 5 Aug 2024 08:24:37 +0000 (10:24 +0200)
committerOndřej Surý <ondrej@isc.org>
Mon, 5 Aug 2024 10:16:33 +0000 (10:16 +0000)
The dst_lib_destroy() should be called only if dst_lib_init() was called
before.  In named-checkconf, that is guarded by dst_cleanup variable
that was erroneously set to true by default.  Set the dst_cleanup to
'false' by default.

bin/check/named-checkconf.c

index f4ed602c49679508569846d0d075c979164735b6..d8ee57074f925fc637fa835ba0c5f73a514c92a4 100644 (file)
@@ -593,7 +593,7 @@ main(int argc, char **argv) {
        const char *conffile = NULL;
        isc_mem_t *mctx = NULL;
        isc_result_t result = ISC_R_SUCCESS;
-       bool cleanup_dst = true;
+       bool cleanup_dst = false;
        bool load_zones = false;
        bool list_zones = false;
        bool print = false;