]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
fipsprov: Missing teardown on fips_get_params_from_core() error
authorTomas Mraz <tomas@openssl.org>
Tue, 11 May 2021 15:50:13 +0000 (17:50 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 13 May 2021 08:24:33 +0000 (10:24 +0200)
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15229)

providers/fips/fipsprov.c

index 7998d55d9aedf352158b9db38b752ba2ad89d91d..c28995fc44ee723c82258ccd4cd12a36ca6b71c1 100644 (file)
@@ -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