diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-09-18 15:06:20 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-09-18 15:06:20 +0100 |
commit | 3edb495707c66d2c7f7702691399dd4671ef1aa0 (patch) | |
tree | 9b7cbaa76affa7aa40a7cb6c8fef6c06938fcebd /tools | |
parent | 4c66249d515812c6ec187bc906d160cc53cad740 (diff) | |
download | xen-3edb495707c66d2c7f7702691399dd4671ef1aa0.tar.gz xen-3edb495707c66d2c7f7702691399dd4671ef1aa0.tar.bz2 xen-3edb495707c66d2c7f7702691399dd4671ef1aa0.zip |
[VTPM] VTPM manager -- Fix parameter check
If vtpm_managed is started with the same vtpm instance, the following
error occurs.
++++++++++++
Loading NVM.
Sending LoadNVM command
INFO[VTSP]: Unbinding 256 bytes of data.
ERROR in VTSP_Unbind at vtsp.c:719 code: TPM_BAD_PARAMETER.
ERROR in envelope_decrypt at securestorage.c:156
code:TPM_BAD_PARAMETER.
ERROR[VTPM]: Failed to envelope decrypt data
.ERROR in VTPM_Handle_Load_NVM at securestorage.c:284 code:
TPM_BAD_PARAMETER.
ERROR[VTPM]: Failed to load NVM
.INFO[VTPM]: [VTPM Listener]: VTPM Listener waiting for messages.
Reading LoadNVM header
++++++++++++
Signed-off-by: Kouichi YASAKI <yasaki.kouichi@jp.fujitsu.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/vtpm_manager/tcs/tcs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vtpm_manager/tcs/tcs.c b/tools/vtpm_manager/tcs/tcs.c index a711d1b57f..7c1378cdff 100644 --- a/tools/vtpm_manager/tcs/tcs.c +++ b/tools/vtpm_manager/tcs/tcs.c @@ -775,7 +775,7 @@ TPM_RESULT TCSP_UnBind(TCS_CONTEXT_HANDLE hContext, // in TDDL_UINT32 OutLength = TCPA_MAX_BUFFER_LENGTH; // check input params - if (inData == NULL || privAuth == NULL || outDataSize == NULL || *outData == NULL) + if (inData == NULL || privAuth == NULL || outDataSize == NULL || outData == NULL) return TPM_BAD_PARAMETER; // Convert Byte Input parameter in the input byte stream InBuf |