提交 f8ea5cb5 编写于 作者: R Richard Levitte

Make sure everything that may be freed is allocated or initiated.

PR: 446
上级 360e5067
......@@ -163,9 +163,9 @@ int BN_generate_prime_ex(BIGNUM *ret, int bits, int safe,
BN_CTX *ctx;
int checks = BN_prime_checks_for_size(bits);
BN_init(&t);
ctx=BN_CTX_new();
if (ctx == NULL) goto err;
BN_init(&t);
loop:
/* make a random number and set the top and bottom bits */
if (add == NULL)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册