child-rekey: Remove redundant migrate() call for child-create sub-task
When retrying due to a DH group mismatch this is already done by the child-create task itself. And in other cases where the task returns NEED_MORE we actually will need access to a possible proposal to properly delete it.
This commit is contained in:
@@ -334,8 +334,7 @@ METHOD(task_t, process_i, status_t,
|
|||||||
if (this->child_create->task.process(&this->child_create->task,
|
if (this->child_create->task.process(&this->child_create->task,
|
||||||
message) == NEED_MORE)
|
message) == NEED_MORE)
|
||||||
{
|
{
|
||||||
/* bad DH group while rekeying, try again */
|
/* bad DH group while rekeying, retry, or failure requiring deletion */
|
||||||
this->child_create->task.migrate(&this->child_create->task, this->ike_sa);
|
|
||||||
return NEED_MORE;
|
return NEED_MORE;
|
||||||
}
|
}
|
||||||
if (message->get_payload(message, PLV2_SECURITY_ASSOCIATION) == NULL)
|
if (message->get_payload(message, PLV2_SECURITY_ASSOCIATION) == NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user