]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Set name for all the isc_mem context
authorOndřej Surý <ondrej@isc.org>
Fri, 25 Apr 2025 11:01:16 +0000 (13:01 +0200)
committerOndřej Surý <ondrej@isc.org>
Thu, 29 May 2025 03:42:56 +0000 (05:42 +0200)
The memory context for dlz_dlopen_driver unit had no name and
that was causing trouble with the statistics channel output.  Set the
name for the two memory context that were missing a proper name.

(cherry picked from commit 5d264b33295d164d55659b166ead7b31b92eda39)

bin/named/dlz_dlopen_driver.c
bin/named/main.c

index 47f879ae49915804effdbca07d710ce1d00df524..f90e1946a37a76b80da10459694ce2db377bd192 100644 (file)
@@ -224,6 +224,7 @@ dlopen_dlz_create(const char *dlzname, unsigned int argc, char *argv[],
        }
 
        isc_mem_create(&mctx);
+       isc_mem_setname(mctx, "dlz");
        cd = isc_mem_get(mctx, sizeof(*cd));
        memset(cd, 0, sizeof(*cd));
 
index 03d4dec5d73c2bdcca1429ff851ad7b0a0da977e..df47e8d667d8db3d8bdd5d11a4651ca460b8599a 100644 (file)
@@ -645,6 +645,7 @@ printversion(bool verbose) {
        printf("threads support is enabled\n");
 
        isc_mem_create(&mctx);
+       isc_mem_setname(mctx, "main");
        result = dst_lib_init(mctx, named_g_engine);
        if (result == ISC_R_SUCCESS) {
                isc_buffer_init(&b, buf, sizeof(buf));