Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix memory leak of TPM key password
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Jun 14, 2012
1 parent 0d72e01 commit 6e4ce24
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gnutls.c
Expand Up @@ -629,6 +629,8 @@ static int load_tpm_key(struct openconnect_info *vpninfo, gnutls_datum_t *fdata,
err = Tspi_Policy_SetSecret(vpninfo->tpm_key_policy,
TSS_SECRET_MODE_PLAIN,
strlen(pass), (void *)pass);
free (pass);

if (err) {
vpn_progress(vpninfo, PRG_ERR,
_("Failed to set key PIN: %s\n"),
Expand Down

0 comments on commit 6e4ce24

Please sign in to comment.