Check if colliding task has actually a CHILD, i.e. after a migrate

This commit is contained in:
Martin Willi
2011-06-03 10:49:54 +02:00
parent ff6aab9e85
commit bc20bc1927
+4 -1
View File
@@ -252,7 +252,10 @@ static child_sa_t *handle_collision(private_child_rekey_t *this)
{
/* disable close action for the redundand child */
child_sa = other->child_create->get_child(other->child_create);
child_sa->set_close_action(child_sa, ACTION_NONE);
if (child_sa)
{
child_sa->set_close_action(child_sa, ACTION_NONE);
}
}
}
else