diff options
Diffstat (limited to 'security/tpm-tools/files/patch-src-tpm_mgmt-tpm_present.c')
-rw-r--r-- | security/tpm-tools/files/patch-src-tpm_mgmt-tpm_present.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/security/tpm-tools/files/patch-src-tpm_mgmt-tpm_present.c b/security/tpm-tools/files/patch-src-tpm_mgmt-tpm_present.c index c739ad69a125..a458d50c3422 100644 --- a/security/tpm-tools/files/patch-src-tpm_mgmt-tpm_present.c +++ b/security/tpm-tools/files/patch-src-tpm_mgmt-tpm_present.c @@ -1,6 +1,6 @@ --- src/tpm_mgmt/tpm_present.c.orig 2009-08-20 23:46:31.000000000 +0900 -+++ src/tpm_mgmt/tpm_present.c 2010-10-25 01:55:31.071556276 +0900 -@@ -168,7 +168,7 @@ ++++ src/tpm_mgmt/tpm_present.c 2013-07-24 22:02:07.000000000 +0900 +@@ -168,9 +168,10 @@ TSS_HPOLICY hTpmPolicy; char *pwd = NULL; int pswd_len; @@ -8,4 +8,7 @@ + char rsp[6]; int scanCount; ++ memset(&hTpmPolicy, 0, sizeof(hTpmPolicy)); //get status w/o owner auth (FAILS 1.1, should PASS 1.2) + if (tpmGetStatus(hTpm, flags[cmdEnable].property, &bCmd) != + TSS_SUCCESS |