Properly initialize ima flag when adding file measurements
authorTobias Brunner <tobias@strongswan.org>
Fri, 28 Sep 2012 13:51:39 +0000 (15:51 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 28 Sep 2012 13:51:39 +0000 (15:51 +0200)
src/libpts/plugins/imv_attestation/attest_db.c

index 6f9b4ad..750a27b 100644 (file)
@@ -1159,7 +1159,7 @@ METHOD(attest_db_t, add, bool,
                chunk_t measurement, ima_template;
                pts_file_meas_t *measurements;
                hasher_t *hasher = NULL;
-               bool ima;
+               bool ima = FALSE;
                int fid, did;
                int files_added = 0, hashes_added = 0, ima_hashes_added = 0;
                enumerator_t *enumerator, *e;