summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark J. Cox <mark@openssl.org>2006-09-29 08:20:11 +0000
committerMark J. Cox <mark@openssl.org>2006-09-29 08:20:11 +0000
commit055fa1c35cd8fe60c86973a8ddc2a102f7f7615b (patch)
treeee1b1f6b19496ddb03cd1d28c2daa8595af7c8e9
parent90a63277e29b5f5dc6ab448dbe542bb52c4e6855 (diff)
Initialise ctx to NULL to avoid uninitialized free, noticed by
Steve Kiernan
-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 c6e618bca2..15276dc2dd 100644
--- a/crypto/dh/dh_key.c
+++ b/crypto/dh/dh_key.c
@@ -175,7 +175,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;