From dea76175581ee827205bc70daa72c1de7872faf6 Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Tue, 11 May 2021 17:50:13 +0200 Subject: [PATCH] fipsprov: Missing teardown on fips_get_params_from_core() error Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/15229) --- providers/fips/fipsprov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/fips/fipsprov.c b/providers/fips/fipsprov.c index 7998d55d9ae..c28995fc44e 100644 --- a/providers/fips/fipsprov.c +++ b/providers/fips/fipsprov.c @@ -669,7 +669,7 @@ int OSSL_provider_init(const OSSL_CORE_HANDLE *handle, if (!fips_get_params_from_core(fgbl)) { /* Error already raised */ - return 0; + goto err; } /* * Disable the conditional error check if it's disabled in the fips config -- 2.47.2