controller: Use the CHILD_SA unique_id to terminate CHILD_SAs

This commit is contained in:
Martin Willi
2015-02-20 13:34:50 +01:00
parent e4a131b1ce
commit 971a91685d
6 changed files with 24 additions and 38 deletions
@@ -352,7 +352,7 @@ METHOD(stroke_control_t, terminate, void,
if (streq(name, child_sa->get_name(child_sa)))
{
child_list->insert_last(child_list,
(void*)(uintptr_t)child_sa->get_reqid(child_sa));
(void*)(uintptr_t)child_sa->get_unique_id(child_sa));
if (!all)
{
break;