From: Pauli Date: Sun, 16 Feb 2020 08:02:03 +0000 (+1000) Subject: Coverity 1458438: fix uninitialised memory access. X-Git-Tag: openssl-3.0.0-alpha1~452 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4f94f748980fc8e6283e0eae90f94950ffd4c1f8;p=oweals%2Fopenssl.git Coverity 1458438: fix uninitialised memory access. Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/11101) --- diff --git a/test/ffc_internal_test.c b/test/ffc_internal_test.c index 4aa23944af..e74dc1bd0f 100644 --- a/test/ffc_internal_test.c +++ b/test/ffc_internal_test.c @@ -393,9 +393,9 @@ static int ffc_params_fips186_2_gen_validate_test(void) FFC_PARAMS params; BIGNUM *bn = NULL; + ffc_params_init(¶ms); if (!TEST_ptr(bn = BN_new())) goto err; - ffc_params_init(¶ms); if (!TEST_true(ffc_params_FIPS186_2_generate(NULL, ¶ms, FFC_PARAM_TYPE_DH, 1024, 160, NULL, &res, NULL))) goto err;