From: Andy Polyakov Date: Tue, 21 Aug 2007 14:44:13 +0000 (+0000) Subject: Avoid BN_CTX_free(uninitialized pointer). X-Git-Tag: FIPS_098_TEST_4~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7d59e441cac3c8d6d48839e9f656284aa468be26;p=oweals%2Fopenssl.git Avoid BN_CTX_free(uninitialized pointer). --- diff --git a/fips/dh/fips_dh_key.c b/fips/dh/fips_dh_key.c index 0cb4eb21e5..d20fa91d5e 100644 --- a/fips/dh/fips_dh_key.c +++ b/fips/dh/fips_dh_key.c @@ -115,7 +115,7 @@ static int generate_key(DH *dh) if (FIPS_mode() && (BN_num_bits(dh->p) < OPENSSL_DH_FIPS_MIN_MODULUS_BITS)) { DHerr(DH_F_GENERATE_KEY, DH_R_KEY_SIZE_TOO_SMALL); - goto err; + return 0; } ctx = BN_CTX_new();