From: Tobias Brunner Date: Fri, 28 Sep 2012 13:49:19 +0000 (+0200) Subject: Properly initialize chunk for PCR value in case of errors X-Git-Tag: 5.0.1~31 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3f0eb04a0428ab91da5e56cdb2e60e2fcaab6c4a;p=thirdparty%2Fstrongswan.git Properly initialize chunk for PCR value in case of errors --- diff --git a/src/libpts/pts/pts.c b/src/libpts/pts/pts.c index 769890fa39..e8dfe5b580 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)