Two 'goto next' paths in zone_notify() skipped detaching the TSIG
key and transport, leaking them on TLS configuration failure and
when the destination address is disabled.
"could not get TLS configuration "
"for zone transfer: %s",
isc_result_totext(result));
+ if (key != NULL) {
+ dns_tsigkey_detach(&key);
+ }
goto next;
}
INSIST(isc_sockaddr_pf(&src) == isc_sockaddr_pf(&dst));
if (isc_sockaddr_disabled(&dst)) {
+ if (key != NULL) {
+ dns_tsigkey_detach(&key);
+ }
+ if (transport != NULL) {
+ dns_transport_detach(&transport);
+ }
goto next;
}