Check t too.

This commit is contained in:
Dr. Stephen Henson 2009-06-17 11:47:54 +00:00
parent 3492c47b18
commit 27713e3fc2

View File

@ -1028,6 +1028,8 @@ int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
assert(j <= al || j <= bl);
k = j+j;
t = BN_CTX_get(ctx);
if (t == NULL)
goto err;
if (al > j || bl > j)
{
bn_wexpand(t,k*4);