From 31cc325fce97cf6704369d53c28cda5f29091955 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 28 Sep 2012 20:57:12 +0200 Subject: [PATCH] Make sure hasher exists before trying to destroy it --- src/libpts/plugins/imv_attestation/attest_db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)