projects
/
platform
/
upstream
/
openconnect.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d72e01
)
Fix memory leak of TPM key password
author
David Woodhouse
<David.Woodhouse@intel.com>
Thu, 14 Jun 2012 15:00:03 +0000
(16:00 +0100)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Thu, 14 Jun 2012 15:00:03 +0000
(16:00 +0100)
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
gnutls.c
patch
|
blob
|
history
diff --git
a/gnutls.c
b/gnutls.c
index
6fcdd3f
..
ab4ee5d
100644
(file)
--- a/
gnutls.c
+++ b/
gnutls.c
@@
-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"),