]> 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>
Wed, 28 May 2025 19:27:13 +0000 (21:27 +0200)
The memory context for isc_managers and dst_api units 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.

lib/dns/dst_api.c
lib/isc/managers.c

index 9426f9c260a1b901856370d46dc9ccb39a5ef1be..9962db728bbfd7973e4a18dc20df1ebb62e12856 100644 (file)
@@ -191,6 +191,7 @@ static isc_mem_t *dst__mctx = NULL;
 void
 dst__lib_initialize(void) {
        isc_mem_create(&dst__mctx);
+       isc_mem_setname(dst__mctx, "dst");
 
        dst__hmacmd5_init(&dst_t_func[DST_ALG_HMACMD5]);
        dst__hmacsha1_init(&dst_t_func[DST_ALG_HMACSHA1]);
index b4912e8ac048dde767e09f51b694ed875f2d4371..1695d5f6f98b7208c865f5b4426cd88ddf798657 100644 (file)
@@ -22,6 +22,7 @@ isc_managers_create(isc_mem_t **mctxp, uint32_t workers,
        REQUIRE(mctxp != NULL && *mctxp == NULL);
        isc_mem_create(mctxp);
        INSIST(*mctxp != NULL);
+       isc_mem_setname(*mctxp, "managers");
 
        REQUIRE(loopmgrp != NULL && *loopmgrp == NULL);
        isc_loopmgr_create(*mctxp, workers, loopmgrp);