From: Andreas Steffen Date: Thu, 1 May 2014 14:58:59 +0000 (+0200) Subject: Use global status variable for IMA runtime X-Git-Tag: 5.2.0dr2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bd8ea2fdd8bc79d4717ec50e224c0fa9dda8b32;p=thirdparty%2Fstrongswan.git Use global status variable for IMA runtime --- diff --git a/src/libpts/pts/components/ita/ita_comp_ima.c b/src/libpts/pts/components/ita/ita_comp_ima.c index 42f86a0333..b5a91cafaa 100644 --- a/src/libpts/pts/components/ita/ita_comp_ima.c +++ b/src/libpts/pts/components/ita/ita_comp_ima.c @@ -869,7 +869,7 @@ METHOD(pts_component_t, verify, status_t, pts_pcr_t *pcrs; time_t measurement_time; chunk_t measurement, pcr_before, pcr_after; - status_t status; + status_t status = NOT_FOUND; this->aik_id = pts->get_aik_id(pts); pcrs = pts->get_pcrs(pts); @@ -1005,7 +1005,6 @@ METHOD(pts_component_t, verify, status_t, break; case IMA_STATE_RUNTIME: { - status_t status = NOT_FOUND; uint8_t hash_buf[HASH_SIZE_SHA512]; chunk_t digest, hash; enumerator_t *e;