diff options
author | Tobias Brunner <tobias@strongswan.org> | 2012-09-28 20:57:12 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2012-09-28 20:57:12 +0200 |
commit | 31cc325fce97cf6704369d53c28cda5f29091955 (patch) | |
tree | a3ea53aac7c155a3563763eb90dcbfafd8247071 | |
parent | 2a43350334097b92a44d011be8e77795ca333255 (diff) | |
download | strongswan-31cc325fce97cf6704369d53c28cda5f29091955.tar.bz2 strongswan-31cc325fce97cf6704369d53c28cda5f29091955.tar.xz |
Make sure hasher exists before trying to destroy it
-rw-r--r-- | src/libpts/plugins/imv_attestation/attest_db.c | 2 |
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) |