diff options
author | Tomas Mraz <tomas@openssl.org> | 2021-05-04 15:38:48 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-05-06 17:01:05 +0200 |
commit | bfe2fcc840e92df5a5875e55c6aed79891d2612f (patch) | |
tree | 996345e3c7c808313ff7efb7956f4946b856080f /test | |
parent | 6ef2f71ac70aff99da277be4a554e3b1fe739050 (diff) |
evp_extra_test: Avoid potential double free of params
Fixes #14916
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15135)
Diffstat (limited to 'test')
-rw-r--r-- | test/evp_extra_test.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/evp_extra_test.c b/test/evp_extra_test.c index f8fdc7287d..7fd45bc316 100644 --- a/test/evp_extra_test.c +++ b/test/evp_extra_test.c @@ -688,6 +688,7 @@ static int test_EC_priv_pub(void) if (!test_fromdata("EC", params)) goto err; OSSL_PARAM_free(params); + params = NULL; OSSL_PARAM_BLD_free(bld); /* Test priv and !pub */ @@ -704,6 +705,7 @@ static int test_EC_priv_pub(void) if (!test_fromdata("EC", params)) goto err; OSSL_PARAM_free(params); + params = NULL; OSSL_PARAM_BLD_free(bld); /* Test !priv and pub */ @@ -721,6 +723,7 @@ static int test_EC_priv_pub(void) if (!test_fromdata("EC", params)) goto err; OSSL_PARAM_free(params); + params = NULL; OSSL_PARAM_BLD_free(bld); /* Test priv and pub */ |