From: Mark J. Cox Date: Fri, 29 Sep 2006 08:21:41 +0000 (+0000) Subject: Initialise ctx to NULL to avoid uninitialized free, noticed by X-Git-Tag: OpenSSL_0_9_8k^2~1117 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c2cccfc585cdc45852d928bb65e38245bf1c253e;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 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;