Properly initialize chunk for PCR value in case of errors

This commit is contained in:
Tobias Brunner
2012-09-28 15:49:19 +02:00
parent 24aa55867e
commit 3f0eb04a04
+1 -1
View File
@@ -659,7 +659,7 @@ METHOD(pts_t, extend_pcr, bool,
TSS_HTPM hTPM;
TSS_RESULT result;
u_int32_t pcr_length;
chunk_t pcr_value;
chunk_t pcr_value = chunk_empty;
result = Tspi_Context_Create(&hContext);
if (result != TSS_SUCCESS)