libtpmtss: Properly initialize tabrmd tcti_context

This commit is contained in:
Andreas Steffen
2018-04-09 11:07:20 +02:00
parent c8f45e4573
commit 55cce124bf
+2 -1
View File
@@ -278,8 +278,9 @@ static bool initialize_tcti_tabrmd_context(private_tpm_tss_tss2_t *this)
return FALSE;
}
/* allocate memory for tcti context */
/* allocate and initialize memory for tcti context */
this->tcti_context = (TSS2_TCTI_CONTEXT*)malloc(tcti_context_size);
memset(this->tcti_context, 0x00, tcti_context_size);
/* initialize tcti context */
rval = tss2_tcti_tabrmd_init(this->tcti_context, &tcti_context_size);