summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2020-02-16 18:02:03 +1000
committerPauli <paul.dale@oracle.com>2020-02-17 19:29:05 +1000
commit4f94f748980fc8e6283e0eae90f94950ffd4c1f8 (patch)
tree7acba6b28d548a5b0782521165126b8e40740c5a /test
parent5472821ece34c87148271abd649538da0743df40 (diff)
downloadopenssl-new-4f94f748980fc8e6283e0eae90f94950ffd4c1f8.tar.gz
Coverity 1458438: fix uninitialised memory access.
Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/11101)
Diffstat (limited to 'test')
-rw-r--r--test/ffc_internal_test.c2
1 files changed, 1 insertions, 1 deletions
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(&params);
if (!TEST_ptr(bn = BN_new()))
goto err;
- ffc_params_init(&params);
if (!TEST_true(ffc_params_FIPS186_2_generate(NULL, &params, FFC_PARAM_TYPE_DH,
1024, 160, NULL, &res, NULL)))
goto err;