openssl: Fix memory leak if FIPS provider isn't available

This commit is contained in:
Tobias Brunner
2023-06-02 11:27:39 +02:00
parent ee9a663b01
commit 89ce398c3d
@@ -833,6 +833,7 @@ plugin_t *openssl_plugin_create()
if (!fips) if (!fips)
{ {
DBG1(DBG_LIB, "unable to load OpenSSL FIPS provider"); DBG1(DBG_LIB, "unable to load OpenSSL FIPS provider");
destroy(this);
return NULL; return NULL;
} }
/* explicitly load the base provider containing encoding functions */ /* explicitly load the base provider containing encoding functions */