aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon L. B. Nielsen <simon@FreeBSD.org>2006-10-01 08:09:46 +0000
committerSimon L. B. Nielsen <simon@FreeBSD.org>2006-10-01 08:09:46 +0000
commit4d227dd736e57cf75f2278d8117f44dcb3defa61 (patch)
tree073efd2cb5350becd6ff74cc9d192bc183a438dc
parented5d4f9a94bdae2f8fb5fe3f2608eef20d2499ca (diff)
downloadsrc-4d227dd736e57cf75f2278d8117f44dcb3defa61.tar.gz
src-4d227dd736e57cf75f2278d8117f44dcb3defa61.zip
Import from upstream OpenSSL 0.9.8 branch:
Fix uninitialized free of ctx in compute_key() when the OPENSSL_DH_MAX_MODULUS_BITS check is triggered. This fixes the same issue as FreeBSD-SA-06:23.openssl v1.1.
Notes
Notes: svn path=/vendor-crypto/openssl/dist/; revision=162916
-rw-r--r--crypto/openssl/crypto/dh/dh_key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/openssl/crypto/dh/dh_key.c b/crypto/openssl/crypto/dh/dh_key.c
index cb5abdcf47c4..37a2c1bca23f 100644
--- a/crypto/openssl/crypto/dh/dh_key.c
+++ b/crypto/openssl/crypto/dh/dh_key.c
@@ -173,7 +173,7 @@ err:
static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh)
{
- BN_CTX *ctx;
+ BN_CTX *ctx=NULL;
BN_MONT_CTX *mont=NULL;
BIGNUM *tmp;
int ret= -1;