diff options
author | Mark J. Cox <mark@openssl.org> | 2006-09-29 08:21:07 +0000 |
---|---|---|
committer | Mark J. Cox <mark@openssl.org> | 2006-09-29 08:21:07 +0000 |
commit | fdff41e16649936bd9c903ad36de0e8811d212d1 (patch) | |
tree | 49ac7422587345cad76a9e8b09cf63ae4fc38e7e /crypto/dh | |
parent | 07b4bc3979fa40229cd91a58920050625e61560f (diff) |
Initialise ctx to NULL to avoid uninitialized free, noticed by
Steve Kiernan
Diffstat (limited to 'crypto/dh')
-rw-r--r-- | crypto/dh/dh_key.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |