destroy attributes, too
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 18 Dec 2011 16:34:53 +0000 (17:34 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 18 Dec 2011 16:34:53 +0000 (17:34 +0100)
src/libpts/plugins/imv_attestation/imv_attestation.c

index cd6f5b5..30c1832 100644 (file)
@@ -298,7 +298,7 @@ static TNC_Result receive_message(TNC_IMVID imv_id,
 
        if (result != TNC_RESULT_SUCCESS)
        {
-               attr_list->destroy(attr_list);
+               attr_list->destroy_offset(attr_list, offsetof(pa_tnc_attr_t, destroy));
                state->set_recommendation(state,
                                                                TNC_IMV_ACTION_RECOMMENDATION_NO_RECOMMENDATION,
                                                                TNC_IMV_EVALUATION_RESULT_ERROR);