Initialise ctx to NULL to avoid uninitialized free, noticed by
authorMark J. Cox <mark@openssl.org>
Fri, 29 Sep 2006 08:20:11 +0000 (08:20 +0000)
committerMark J. Cox <mark@openssl.org>
Fri, 29 Sep 2006 08:20:11 +0000 (08:20 +0000)
Steve Kiernan

crypto/dh/dh_key.c

index c6e618bca2e4180fb9d9730c26d7378a7e3911ea..15276dc2dd4a316c836b6e31b3f2d45a87c30c79 100644 (file)
@@ -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;