Properly initialize chunk for PCR value in case of errors
authorTobias Brunner <tobias@strongswan.org>
Fri, 28 Sep 2012 13:49:19 +0000 (15:49 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 28 Sep 2012 13:49:19 +0000 (15:49 +0200)
src/libpts/pts/pts.c

index 769890f..e8dfe5b 100644 (file)
@@ -659,7 +659,7 @@ METHOD(pts_t, extend_pcr, bool,
        TSS_HTPM hTPM;
        TSS_RESULT result;
        u_int32_t pcr_length;
        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)
 
        result = Tspi_Context_Create(&hContext);
        if (result != TSS_SUCCESS)