From 4f94f748980fc8e6283e0eae90f94950ffd4c1f8 Mon Sep 17 00:00:00 2001 From: Pauli Date: Sun, 16 Feb 2020 18:02:03 +1000 Subject: [PATCH] Coverity 1458438: fix uninitialised memory access. Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/11101) --- test/ffc_internal_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1