From c7e7d382d5190b4e6c8ceb5068e138cd0bab86bf Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Thu, 28 Apr 2005 08:52:29 +0000 Subject: [PATCH] Pointer to BN_MONT_CTX could be used uninitialized. --- crypto/dh/dh_key.c | 4 ++-- fips/dh/fips_dh_key.c | 4 ++-- fips/fipshashes.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crypto/dh/dh_key.c b/crypto/dh/dh_key.c index 4254176ee2..d54a3b1117 100644 --- a/crypto/dh/dh_key.c +++ b/crypto/dh/dh_key.c @@ -105,7 +105,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(); @@ -162,7 +162,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; diff --git a/fips/dh/fips_dh_key.c b/fips/dh/fips_dh_key.c index d037b1e264..7d6f259b50 100644 --- a/fips/dh/fips_dh_key.c +++ b/fips/dh/fips_dh_key.c @@ -108,7 +108,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(); @@ -164,7 +164,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; diff --git a/fips/fipshashes.c b/fips/fipshashes.c index 2a63291ea5..484ebbcdc8 100644 --- a/fips/fipshashes.c +++ b/fips/fipshashes.c @@ -14,7 +14,7 @@ const char * const FIPS_source_hashes[] = { "HMAC-SHA1(des/fips_des_locl.h)= e008da40dc6913e374edd66a20d44e1752f00583", "HMAC-SHA1(dh/fips_dh_check.c)= 63347e2007e224381d4a7b6d871633889de72cf3", "HMAC-SHA1(dh/fips_dh_gen.c)= 93fe69b758ca9d70d70cda1c57fff4eb5c668e85", -"HMAC-SHA1(dh/fips_dh_key.c)= 90bdc0c2c55aea2feecd16bf9b4bc3717d4c32f4", +"HMAC-SHA1(dh/fips_dh_key.c)= 0b810d411090abd6b676a7ca730c35362fbd04a4", "HMAC-SHA1(dsa/fips_dsa_ossl.c)= 0ff7c3aa1cb111f14ff253870fc2eddfd2224d06", "HMAC-SHA1(dsa/fips_dsa_gen.c)= c252db14699f3ff641db052311da7d7521569c53", "HMAC-SHA1(dsa/fips_dsa_selftest.c)= 7c2ba8d82feda2aadc8b769a3b6c4c25a6356e01", -- 2.25.1