diff options
Diffstat (limited to 'tools/vtpm_manager/tcs/tcs.c')
-rw-r--r-- | tools/vtpm_manager/tcs/tcs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/vtpm_manager/tcs/tcs.c b/tools/vtpm_manager/tcs/tcs.c index 6ed019dd41..a711d1b57f 100644 --- a/tools/vtpm_manager/tcs/tcs.c +++ b/tools/vtpm_manager/tcs/tcs.c @@ -162,8 +162,7 @@ TPM_RESULT TCS_OpenContext(TCS_CONTEXT_HANDLE* hContext) { // out vtpmloginfo(VTPM_LOG_TCS, "Calling TCS_OpenContext:\n"); - // hContext must point to a null memory context handle - if(*hContext == HANDLE_NULL) { + if (hContext) { CONTEXT_HANDLE* pContextHandle = (CONTEXT_HANDLE *) malloc(sizeof(CONTEXT_HANDLE)); if (pContextHandle == NULL) return TPM_SIZE; |