diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-06-17 11:48:22 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-06-17 11:48:22 +0000 |
commit | 73ea41607004bd39bf56730b875549f765107e95 (patch) | |
tree | e880d1795b864eb2d4812e9f6817de579589bc96 /crypto/bn/bn_mul.c | |
parent | 4f33534c8a684d257ef3e105b1badf07e3a56448 (diff) |
Update from 1.0.0-stable.
Diffstat (limited to 'crypto/bn/bn_mul.c')
-rw-r--r-- | crypto/bn/bn_mul.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/bn/bn_mul.c b/crypto/bn/bn_mul.c index b848c8cc60..3a1d459dd6 100644 --- a/crypto/bn/bn_mul.c +++ b/crypto/bn/bn_mul.c @@ -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); |