aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/dh/dh_key.c
diff options
context:
space:
mode:
authorMark J. Cox <mark@openssl.org>2006-09-29 08:21:41 +0000
committerMark J. Cox <mark@openssl.org>2006-09-29 08:21:41 +0000
commitc2cccfc585cdc45852d928bb65e38245bf1c253e (patch)
tree76a4a6532df8828516ba5d9737c165796fb0b2bc /crypto/dh/dh_key.c
parent3c5406b35cbbfd8d9f681727df0f306ad3418dc7 (diff)
downloadopenssl-c2cccfc585cdc45852d928bb65e38245bf1c253e.tar.gz
Initialise ctx to NULL to avoid uninitialized free, noticed by
Steve Kiernan
Diffstat (limited to 'crypto/dh/dh_key.c')
-rw-r--r--crypto/dh/dh_key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/dh/dh_key.c b/crypto/dh/dh_key.c
index cb5abdcf47..37a2c1bca2 100644
--- a/crypto/dh/dh_key.c
+++ b/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;