From: Dr. Stephen Henson Date: Wed, 17 Jun 2009 11:49:18 +0000 (+0000) Subject: Update from 1.0.0-stable. X-Git-Tag: OpenSSL_0_9_8m-beta1~194 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=15684f58c2e1237ae074f22cba4a61418fd01d3d;p=oweals%2Fopenssl.git Update from 1.0.0-stable. --- 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);