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
+2 -2
View File
@@ -264,11 +264,11 @@ CALLBACK(terminate, vici_message_t*,
{
continue;
}
if (child_id && child_sa->get_reqid(child_sa) != child_id)
if (child_id && child_sa->get_unique_id(child_sa) != child_id)
{
continue;
}
current = child_sa->get_reqid(child_sa);
current = child_sa->get_unique_id(child_sa);
array_insert(ids, ARRAY_TAIL, &current);
}
csas->destroy(csas);