summaryrefslogtreecommitdiffstats
path: root/crypto/dh/dh_key.c
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2005-04-28 08:49:01 +0000
committerAndy Polyakov <appro@openssl.org>2005-04-28 08:49:01 +0000
commit3cc54008eb9893aebdff9aee9a1f20dfbbeba811 (patch)
treededd85aadc08aff2e7de314c11e0f9b94ad8a90c /crypto/dh/dh_key.c
parentff8bcccdd4ad2f3d4e6784fc0c3d55f3cd8fb8fa (diff)
Pointer to BN_MONT_CTX could be used uninitialized.
Diffstat (limited to 'crypto/dh/dh_key.c')
-rw-r--r--crypto/dh/dh_key.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/dh/dh_key.c b/crypto/dh/dh_key.c
index 62d05a4fac..9148f179f7 100644
--- a/crypto/dh/dh_key.c
+++ b/crypto/dh/dh_key.c
@@ -104,7 +104,7 @@ static int generate_key(DH *dh)
int generate_new_key=0;
unsigned l;
BN_CTX *ctx;
- BN_MONT_CTX *mont;
+ BN_MONT_CTX *mont=NULL;
BIGNUM *pub_key=NULL,*priv_key=NULL;
ctx = BN_CTX_new();
@@ -160,7 +160,7 @@ err:
static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh)
{
BN_CTX *ctx;
- BN_MONT_CTX *mont;
+ BN_MONT_CTX *mont=NULL;
BIGNUM *tmp;
int ret= -1;