credential-manager: Fix leaked signature params if self-signed cert is untrusted

Closes strongswan/strongswan#2954
This commit is contained in:
Jean-François Hren
2025-12-01 19:18:53 +01:00
committed by Tobias Brunner
parent b0e4a7d015
commit f25b1aca8b
@@ -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;
}