mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04: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
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Reference in a new issue