]> 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:21:48 +0000 (12:21 +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 e81d4df0b3e3bb539561c1bd0b3504ef21395646..fdc5eb879a1c18b6de3244c5d2cfe4d14e8a377d 100644 (file)
@@ -1469,7 +1469,6 @@ catz_process_primaries(dns_catz_zone_t *catz, dns_ipkeylist_t *ipkl,
                        dns_rdata_freestruct(&rdata_txt);
                        result = dns_name_fromstring(keyname, keycbuf, 0, mctx);
                        if (result != ISC_R_SUCCESS) {
-                               dns_name_free(keyname, mctx);
                                isc_mem_put(mctx, keyname, sizeof(*keyname));
                                return result;
                        }