]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
credential-manager: Fix leaked signature params if self-signed cert is untrusted master
authorJean-François Hren <jean-francois.hren@stormshield.eu>
Mon, 1 Dec 2025 16:02:39 +0000 (17:02 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 1 Dec 2025 18:18:53 +0000 (19:18 +0100)
Closes strongswan/strongswan#2954

src/libstrongswan/credentials/credential_manager.c

index dd6b89488b72ae56ba09ea5a5cfe890e769cdee8..4f181212141469e82f01aa5b745c35a30afa9ff5 100644 (file)
@@ -788,6 +788,7 @@ static bool verify_trust_chain(private_credential_manager_t *this,
                                        DBG1(DBG_CFG, "  self-signed certificate \"%Y\" is not "
                                                 "trusted", current->get_subject(current));
                                        issuer->destroy(issuer);
+                                       signature_params_destroy(scheme);
                                        call_hook(this, CRED_HOOK_UNTRUSTED_ROOT, current);
                                        break;
                                }