destroy oversized attributes
authorAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 12 Jul 2012 19:17:28 +0000 (21:17 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 12 Jul 2012 19:26:18 +0000 (21:26 +0200)
src/libimcv/imc/imc_agent.c
src/libimcv/imv/imv_agent.c

index eb9f9be..6aba5e4 100644 (file)
@@ -516,6 +516,7 @@ METHOD(imc_agent_t, send_message, TNC_Result,
                                else
                                {
                                        DBG1(DBG_IMC, "PA-TNC attribute too large to send, deleted");
+                                       attr->destroy(attr);
                                }
                        }
                        attr_list->remove_at(attr_list, enumerator);
index 68bde26..d7c614a 100644 (file)
@@ -537,6 +537,7 @@ METHOD(imv_agent_t, send_message, TNC_Result,
                                else
                                {
                                        DBG1(DBG_IMV, "PA-TNC attribute too large to send, deleted");
+                                       attr->destroy(attr);
                                }
                        }
                        attr_list->remove_at(attr_list, enumerator);