]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
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 eb9f9befc5b0e298f7be98a1baa9606a33b85440..6aba5e4ad6b50a00f49131789626ddf5d10be05c 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 68bde26e0f4d060daa23e9f3676221290c5064cb..d7c614a726e2ca95ab032b24dd78904cb5d1d576 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);