From: Dr. Stephen Henson Date: Wed, 17 Jun 2009 11:26:39 +0000 (+0000) Subject: Update from HEAD. X-Git-Tag: OpenSSL_0_9_8m-beta1~195 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0e6c24ae4ba80b20aa38bf03381f57d057bbaac9;p=oweals%2Fopenssl.git Update from HEAD. --- diff --git a/crypto/bn/bn_div.c b/crypto/bn/bn_div.c index 1e8e57626b..5ea0d6510f 100644 --- a/crypto/bn/bn_div.c +++ b/crypto/bn/bn_div.c @@ -229,7 +229,8 @@ int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor, if (dv == NULL) res=BN_CTX_get(ctx); else res=dv; - if (sdiv == NULL || res == NULL) goto err; + if (sdiv == NULL || res == NULL || tmp == NULL || snum == NULL) + goto err; /* First we normalise the numbers */ norm_shift=BN_BITS2-((BN_num_bits(divisor))%BN_BITS2); diff --git a/crypto/bn/bn_exp.c b/crypto/bn/bn_exp.c index 70a33f0d93..d9b6c737fc 100644 --- a/crypto/bn/bn_exp.c +++ b/crypto/bn/bn_exp.c @@ -134,7 +134,8 @@ int BN_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) rr = BN_CTX_get(ctx); else rr = r; - if ((v = BN_CTX_get(ctx)) == NULL) goto err; + v = BN_CTX_get(ctx); + if (rr == NULL || v == NULL) goto err; if (BN_copy(v,a) == NULL) goto err; bits=BN_num_bits(p);