From 055fa1c35cd8fe60c86973a8ddc2a102f7f7615b Mon Sep 17 00:00:00 2001 From: "Mark J. Cox" Date: Fri, 29 Sep 2006 08:20:11 +0000 Subject: [PATCH] Initialise ctx to NULL to avoid uninitialized free, noticed by Steve Kiernan --- crypto/dh/dh_key.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1