check if pts_credmgr exists
authorAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 8 Sep 2011 15:28:07 +0000 (17:28 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 8 Sep 2011 15:28:07 +0000 (17:28 +0200)
src/libimcv/plugins/imv_attestation/imv_attestation.c

index 27c20d5..25684ea 100644 (file)
@@ -665,7 +665,7 @@ TNC_Result TNC_IMV_Terminate(TNC_IMVID imv_id)
                pts_creds->destroy(pts_creds);
        }
        DESTROY_IF(pts_db);
-       pts_credmgr->destroy(pts_credmgr);
+       DESTROY_IF(pts_credmgr);
        imv_attestation->destroy(imv_attestation);
        imv_attestation = NULL;