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)
keycbuf[rdatastr.length] = 0;
result = dns_name_fromstring(keyname, keycbuf, 0, mctx);
if (result != ISC_R_SUCCESS) {
- dns_name_free(keyname, mctx);
isc_mem_put(mctx, keyname, sizeof(dns_name_t));
return (result);
}