Update from 1.0.0-stable.

This commit is contained in:
Dr. Stephen Henson 2009-06-17 11:49:18 +00:00
parent 0e6c24ae4b
commit 15684f58c2

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);