From: Mark J. Cox Date: Fri, 29 Sep 2006 08:20:11 +0000 (+0000) Subject: Initialise ctx to NULL to avoid uninitialized free, noticed by X-Git-Tag: OpenSSL_0_9_7m~54 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=055fa1c35cd8fe60c86973a8ddc2a102f7f7615b;p=oweals%2Fopenssl.git Initialise ctx to NULL to avoid uninitialized free, noticed by Steve Kiernan --- 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;