mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Merge branch '3547-dns_message_checksig-leak-fix-v9_18' into 'v9_18'
Fix memory leak in dns_message_checksig() - SIG(0) sigs [v9_18] See merge request isc-projects/bind9!6812
This commit is contained in:
commit
c460041ad1
1 changed files with 3 additions and 2 deletions
|
|
@ -3212,14 +3212,15 @@ dns_message_checksig(dns_message_t *msg, dns_view_t *view) {
|
|||
return (ISC_R_UNEXPECTEDEND);
|
||||
}
|
||||
|
||||
result = dns_rdata_tostruct(&rdata, &sig, msg->mctx);
|
||||
result = dns_rdata_tostruct(&rdata, &sig, NULL);
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
return (result);
|
||||
}
|
||||
|
||||
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