child-cfg: Fix removal of redundant traffic selectors
We have to make sure we compare every selected traffic selector with every other in the list. Fixes #577.
This commit is contained in:
@@ -354,11 +354,11 @@ METHOD(child_cfg_t, get_traffic_selectors, linked_list_t*,
|
|||||||
{
|
{
|
||||||
result->remove_at(result, e1);
|
result->remove_at(result, e1);
|
||||||
ts1->destroy(ts1);
|
ts1->destroy(ts1);
|
||||||
result->reset_enumerator(result, e2);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
result->reset_enumerator(result, e2);
|
||||||
}
|
}
|
||||||
e1->destroy(e1);
|
e1->destroy(e1);
|
||||||
e2->destroy(e2);
|
e2->destroy(e2);
|
||||||
|
|||||||
Reference in New Issue
Block a user