Check t too.
This commit is contained in:
parent
3492c47b18
commit
27713e3fc2
@ -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 New Issue
Block a user