Update from 1.0.0-stable.

This commit is contained in:
Dr. Stephen Henson 2009-06-17 11:48:22 +00:00
parent 4f33534c8a
commit 73ea416070

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