]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Remove unnecessary dns_name_free call
authorMark Andrews <marka@isc.org>
Fri, 10 Apr 2026 03:07:26 +0000 (13:07 +1000)
committerMark Andrews <marka@isc.org>
Wed, 15 Apr 2026 02:30:22 +0000 (12:30 +1000)
When processing a catalog zone member's primaries definition and
there is a TXT record containing an invalid name TSIG key name,
dns_name_free was incorrectly called triggering an assertion.
This has been fixed.

(cherry picked from commit 9f411c93c4d87b8097d39024da5a9da447cddaf7)

lib/dns/catz.c

index 30b0bc4d4acfa039c34249e8058a026b8187bd38..2924a134628318e4e136f7529fddf4414d5ecd8c 100644 (file)
@@ -1467,7 +1467,6 @@ catz_process_primaries(dns_catz_zone_t *catz, dns_ipkeylist_t *ipkl,
                        result = dns_name_fromstring(keyname, keycbuf,
                                                     dns_rootname, 0, mctx);
                        if (result != ISC_R_SUCCESS) {
-                               dns_name_free(keyname, mctx);
                                isc_mem_put(mctx, keyname, sizeof(*keyname));
                                return result;
                        }