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

View File

@ -833,6 +833,7 @@ plugin_t *openssl_plugin_create()
if (!fips)
{
DBG1(DBG_LIB, "unable to load OpenSSL FIPS provider");
destroy(this);
return NULL;
}
/* explicitly load the base provider containing encoding functions */