From: Ondřej Surý Date: Fri, 25 Apr 2025 11:01:16 +0000 (+0200) Subject: Set name for all the isc_mem context X-Git-Tag: v9.21.9~31^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d264b33295d164d55659b166ead7b31b92eda39;p=thirdparty%2Fbind9.git Set name for all the isc_mem context 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. --- diff --git a/lib/dns/dst_api.c b/lib/dns/dst_api.c index 9426f9c260a..9962db728bb 100644 --- a/lib/dns/dst_api.c +++ b/lib/dns/dst_api.c @@ -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]); diff --git a/lib/isc/managers.c b/lib/isc/managers.c index b4912e8ac04..1695d5f6f98 100644 --- a/lib/isc/managers.c +++ b/lib/isc/managers.c @@ -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);