From: Andreas Steffen Date: Thu, 30 May 2013 18:04:34 +0000 (+0200) Subject: pts_meas_algo_probe() and pts_dh_group_probe() got lost X-Git-Tag: 5.1.0dr1~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e9bdd20aaba9d8ef2fd2c0c844eb7b0d79924ad;p=thirdparty%2Fstrongswan.git pts_meas_algo_probe() and pts_dh_group_probe() got lost --- diff --git a/src/libpts/plugins/imv_attestation/imv_attestation_agent.c b/src/libpts/plugins/imv_attestation/imv_attestation_agent.c index 5eabf7b362..7feb980c1d 100644 --- a/src/libpts/plugins/imv_attestation/imv_attestation_agent.c +++ b/src/libpts/plugins/imv_attestation/imv_attestation_agent.c @@ -386,7 +386,7 @@ METHOD(imv_agent_if_t, destroy, void, } DESTROY_IF(this->pts_db); DESTROY_IF(this->pts_credmgr); - this->agent->destroy(this->agent); + DESTROY_IF(this->agent); free(this); libpts_deinit(); } @@ -428,6 +428,8 @@ imv_agent_if_t *imv_attestation_agent_create(const char *name, TNC_IMVID id, ); if (!this->agent || + !pts_meas_algo_probe(&this->supported_algorithms) || + !pts_dh_group_probe(&this->supported_dh_groups) || !pts_meas_algo_update(hash_alg, &this->supported_algorithms) || !pts_dh_group_update(dh_group, &this->supported_dh_groups)) {