2
0
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:
Petr Špaček 2022-09-19 09:07:51 +02:00
parent d1508a13cb
commit 69256b3553
No known key found for this signature in database
GPG Key ID: ABD587CDF06581AE

View File

@ -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,