提交 4d94bd36 编写于 作者: M Matt Caswell

Check for malloc error in bn_x931p.c

Ensure BN_CTX_get() has been successful
Reviewed-by: NTim Hudson <tjh@openssl.org>
上级 4162c7d3
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册