ikev2: Migrate number of pending MOBIKE updates
authorTobias Brunner <tobias@strongswan.org>
Tue, 22 Jul 2014 16:30:24 +0000 (18:30 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 12 Sep 2014 08:29:36 +0000 (10:29 +0200)
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.

src/libcharon/sa/ikev2/tasks/ike_mobike.c

index a514113..dce6ecd 100644 (file)
@@ -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,