]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Call dns_lib_destroy in bin/named/main.c:printversion
authorMark Andrews <marka@isc.org>
Sun, 29 Jan 2023 22:49:58 +0000 (09:49 +1100)
committerMark Andrews <marka@isc.org>
Mon, 30 Jan 2023 22:26:50 +0000 (22:26 +0000)
There were unbalanced calls to dns_lib_init and dns_lib_destroy
leading to an OpenSSL memory leak.

bin/named/main.c

index b71cf0f969b70bb489e4aba1907f7074453fe19b..353932e79d57dc15825129bc7eb4f30a08d61a6e 100644 (file)
@@ -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));