ikev2: Migrate number of pending MOBIKE updates

This will probably never be more than 1 since we only have one task queued
at a time and we don't migrate running tasks.
This commit is contained in:
Tobias Brunner
2014-09-12 10:29:36 +02:00
parent 03f61ba3d5
commit 40164bbe27
@@ -632,6 +632,11 @@ METHOD(task_t, migrate, void,
{
this->natd->task.migrate(&this->natd->task, ike_sa);
}
if (this->pending_update)
{
this->ike_sa->set_pending_updates(this->ike_sa,
this->ike_sa->get_pending_updates(this->ike_sa) + 1);
}
}
METHOD(task_t, destroy, void,