Properly initialize chunk for PCR value in case of errors
This commit is contained in:
@@ -659,7 +659,7 @@ METHOD(pts_t, extend_pcr, bool,
|
|||||||
TSS_HTPM hTPM;
|
TSS_HTPM hTPM;
|
||||||
TSS_RESULT result;
|
TSS_RESULT result;
|
||||||
u_int32_t pcr_length;
|
u_int32_t pcr_length;
|
||||||
chunk_t pcr_value;
|
chunk_t pcr_value = chunk_empty;
|
||||||
|
|
||||||
result = Tspi_Context_Create(&hContext);
|
result = Tspi_Context_Create(&hContext);
|
||||||
if (result != TSS_SUCCESS)
|
if (result != TSS_SUCCESS)
|
||||||
|
|||||||
Reference in New Issue
Block a user