Update from 1.0.0-stable.
This commit is contained in:
parent
4f33534c8a
commit
73ea416070
1 changed files with 2 additions and 0 deletions
|
@ -1028,6 +1028,8 @@ int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
|
||||||
assert(j <= al || j <= bl);
|
assert(j <= al || j <= bl);
|
||||||
k = j+j;
|
k = j+j;
|
||||||
t = BN_CTX_get(ctx);
|
t = BN_CTX_get(ctx);
|
||||||
|
if (t == NULL)
|
||||||
|
goto err;
|
||||||
if (al > j || bl > j)
|
if (al > j || bl > j)
|
||||||
{
|
{
|
||||||
bn_wexpand(t,k*4);
|
bn_wexpand(t,k*4);
|
||||||
|
|
Loading…
Reference in a new issue