2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-22 10:10:06 +00:00

Free 'rsa' if 'e' is NULL in opensslrsa_verify2

This commit is contained in:
Mark Andrews 2022-09-26 11:51:05 +10:00
parent 1f670f4b69
commit a2b51ca6ac

View File

@ -202,6 +202,7 @@ opensslrsa_verify2(dst_context_t *dctx, int maxbits, const isc_region_t *sig) {
}
RSA_get0_key(rsa, NULL, &e, NULL);
if (e == NULL) {
RSA_free(rsa);
return (dst__openssl_toresult(DST_R_VERIFYFAILURE));
}
bits = BN_num_bits(e);