aboutsummaryrefslogtreecommitdiffstats
path: root/src/libpts/plugins/imv_attestation/attest_db.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2012-09-28 20:57:12 +0200
committerTobias Brunner <tobias@strongswan.org>2012-09-28 20:57:12 +0200
commit31cc325fce97cf6704369d53c28cda5f29091955 (patch)
treea3ea53aac7c155a3563763eb90dcbfafd8247071 /src/libpts/plugins/imv_attestation/attest_db.c
parent2a43350334097b92a44d011be8e77795ca333255 (diff)
downloadstrongswan-31cc325fce97cf6704369d53c28cda5f29091955.tar.bz2
strongswan-31cc325fce97cf6704369d53c28cda5f29091955.tar.xz
Make sure hasher exists before trying to destroy it
Diffstat (limited to 'src/libpts/plugins/imv_attestation/attest_db.c')
-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 750a27b74..55afbf701 100644
--- a/src/libpts/plugins/imv_attestation/attest_db.c
+++ b/src/libpts/plugins/imv_attestation/attest_db.c
@@ -1182,7 +1182,7 @@ METHOD(attest_db_t, add, bool,
if (!measurements)
{
printf("file measurement failed\n");
- hasher->destroy(hasher);
+ DESTROY_IF(hasher);
return FALSE;
}
if (this->fid && this->relative)