openssl: Fix memory leak if FIPS provider isn't available
This commit is contained in:
@@ -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 */
|
||||||
|
|||||||
Reference in New Issue
Block a user