diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-06-17 11:26:39 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-06-17 11:26:39 +0000 |
commit | 0e6c24ae4ba80b20aa38bf03381f57d057bbaac9 (patch) | |
tree | c10471a4987e915e305fa3a1be29c3389dc104c0 /crypto/bn/bn_div.c | |
parent | 0dc1b3c1fbe58088e6922b6df793ade0e637ad82 (diff) |
Update from HEAD.
Diffstat (limited to 'crypto/bn/bn_div.c')
-rw-r--r-- | crypto/bn/bn_div.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |