summaryrefslogtreecommitdiffstats
path: root/crypto/bn
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-06-17 11:47:54 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-06-17 11:47:54 +0000
commit27713e3fc250fc37d98020b9e45c7a8135c64e52 (patch)
treedacd9178c22c7adf15a12cd84346fc6a788044b4 /crypto/bn
parent3492c47b18e901e9006b8ebb388640979d0342dd (diff)
Check t too.
Diffstat (limited to 'crypto/bn')
-rw-r--r--crypto/bn/bn_mul.c2
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);