mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
Fix memory leak in dns_message_checksig() - SIG(0) sigs
Impact should be visible only in tests or tools because named never uses view == NULL, which is a necessary condition to trigger this leak.
This commit is contained in:
parent
d1508a13cb
commit
69256b3553
@ -3174,7 +3174,8 @@ dns_message_checksig(dns_message_t *msg, dns_view_t *view) {
|
||||
|
||||
dns_rdataset_init(&keyset);
|
||||
if (view == NULL) {
|
||||
return (DNS_R_KEYUNAUTHORIZED);
|
||||
result = DNS_R_KEYUNAUTHORIZED;
|
||||
goto freesig;
|
||||
}
|
||||
result = dns_view_simplefind(view, &sig.signer,
|
||||
dns_rdatatype_key /* SIG(0) */, 0,
|
||||
|
Loading…
x
Reference in New Issue
Block a user