2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 21:47:59 +00:00

Stop passing mctx to dns_rdata_tostruct as it is unnecessary for SIG

dns_rdata_tostruct doesn't need a mctx passed to it for SIG (the signer
is already expanded at this point). About the only time when mctx is
needed is when the structure is to be used after the rdata has been
destroyed.
This commit is contained in:
Mark Andrews 2022-09-21 11:54:48 +10:00 committed by Petr Špaček
parent 69256b3553
commit d6ad56bd9e
No known key found for this signature in database
GPG Key ID: ABD587CDF06581AE

View File

@ -3167,7 +3167,7 @@ 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);
}