From 3f0eb04a0428ab91da5e56cdb2e60e2fcaab6c4a Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 28 Sep 2012 15:49:19 +0200 Subject: [PATCH] Properly initialize chunk for PCR value in case of errors --- src/libpts/pts/pts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libpts/pts/pts.c b/src/libpts/pts/pts.c index 769890fa3..e8dfe5b58 100644 --- a/src/libpts/pts/pts.c +++ b/src/libpts/pts/pts.c @@ -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)