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:
parent
1f670f4b69
commit
a2b51ca6ac
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user