Skip to content

Commit f25b1ac

Browse files
jfhren-stormshieldtobiasbrunner
authored andcommitted
credential-manager: Fix leaked signature params if self-signed cert is untrusted
Closes strongswan#2954
1 parent b0e4a7d commit f25b1ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libstrongswan/credentials/credential_manager.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,7 @@ static bool verify_trust_chain(private_credential_manager_t *this,
788788
DBG1(DBG_CFG, " self-signed certificate \"%Y\" is not "
789789
"trusted", current->get_subject(current));
790790
issuer->destroy(issuer);
791+
signature_params_destroy(scheme);
791792
call_hook(this, CRED_HOOK_UNTRUSTED_ROOT, current);
792793
break;
793794
}

0 commit comments

Comments
 (0)