aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2012-09-28 15:51:39 +0200
committerTobias Brunner <tobias@strongswan.org>2012-09-28 15:51:39 +0200
commit0031bf3eaf0cf85ab3cf385d633acb2811376682 (patch)
tree3d4f3d802289b283d8f18398c26fc574b1ec2f3c /src
parent3f0eb04a0428ab91da5e56cdb2e60e2fcaab6c4a (diff)
downloadstrongswan-0031bf3eaf0cf85ab3cf385d633acb2811376682.tar.bz2
strongswan-0031bf3eaf0cf85ab3cf385d633acb2811376682.tar.xz
Properly initialize ima flag when adding file measurements
Diffstat (limited to 'src')
-rw-r--r--src/libpts/plugins/imv_attestation/attest_db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libpts/plugins/imv_attestation/attest_db.c b/src/libpts/plugins/imv_attestation/attest_db.c
index 6f9b4add1..750a27b74 100644
--- a/src/libpts/plugins/imv_attestation/attest_db.c
+++ b/src/libpts/plugins/imv_attestation/attest_db.c
@@ -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;