From 8b3c018f54302222c6212a38f1bcae75c601b602 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Mon, 30 Jan 2023 09:49:58 +1100 Subject: [PATCH 1/2] Call dns_lib_destroy in bin/named/main.c:printversion There were unbalanced calls to dns_lib_init and dns_lib_destroy leading to an OpenSSL memory leak. --- bin/named/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/named/main.c b/bin/named/main.c index b71cf0f969..353932e79d 100644 --- a/bin/named/main.c +++ b/bin/named/main.c @@ -643,6 +643,7 @@ printversion(bool verbose) { isc_buffer_init(&b, buf, sizeof(buf)); format_supported_algorithms(printit); printf("\n"); + dst_lib_destroy(); } else { printf("DST initialization failure: %s\n", isc_result_totext(result)); From 1d258e2fb8415444e784688be6ec4294c8480c48 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Mon, 30 Jan 2023 12:00:41 +1100 Subject: [PATCH 2/2] Add CHANGES for [GL #3829] --- CHANGES | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGES b/CHANGES index a46cecb382..b53b2eb37f 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,5 @@ +6080. [bug] 'named -V' leaked memory. [GL #3829] + 6079. [bug] Force set the DS state after a 'rdnc dnssec -checkds' command. [GL #3822]