mirror of
https://github.com/openssl/openssl.git
synced 2024-12-30 04:14:03 +08:00
Check for malloc error in bn_x931p.c
Ensure BN_CTX_get() has been successful Reviewed-by: Tim Hudson <tjh@openssl.org>
This commit is contained in:
parent
4162c7d378
commit
4d94bd362d
@ -74,6 +74,9 @@ int BN_X931_derive_prime_ex(BIGNUM *p, BIGNUM *p1, BIGNUM *p2,
|
||||
|
||||
pm1 = BN_CTX_get(ctx);
|
||||
|
||||
if (pm1 == NULL)
|
||||
goto err;
|
||||
|
||||
if (!bn_x931_derive_pi(p1, Xp1, ctx, cb))
|
||||
goto err;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user