pts_meas_algo_probe() and pts_dh_group_probe() got lost
authorAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 30 May 2013 18:04:34 +0000 (20:04 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 21 Jun 2013 21:25:23 +0000 (23:25 +0200)
src/libpts/plugins/imv_attestation/imv_attestation_agent.c

index 5eabf7b..7feb980 100644 (file)
@@ -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))
        {