]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
openssl: Fix memory leak if FIPS provider isn't available
authorTobias Brunner <tobias@strongswan.org>
Fri, 2 Jun 2023 09:27:39 +0000 (11:27 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 2 Jun 2023 09:27:39 +0000 (11:27 +0200)
src/libstrongswan/plugins/openssl/openssl_plugin.c

index 2807e2316e72ebb08bee9a6690406443b78d521f..ea72f736888d110679fe6cd31b02481db1046ddf 100644 (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 */