Allow responder to use ike_mobike_t.roam.
authorTobias Brunner <tobias@strongswan.org>
Tue, 5 Oct 2010 15:59:48 +0000 (17:59 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 12 Oct 2010 09:11:05 +0000 (11:11 +0200)
After getting a response the responder updates the IPsec SAs.

src/libcharon/sa/tasks/ike_mobike.c

index 3d7827c..1773f6b 100644 (file)
@@ -543,7 +543,13 @@ METHOD(task_t, process_i, status_t,
                        }
                        if (this->update)
                        {
-                               /* start the update with the same task */
+                               if (!this->ike_sa->has_condition(this->ike_sa,
+                                                                                                COND_ORIGINAL_INITIATOR))
+                               {
+                                       update_children(this);
+                                       return SUCCESS;
+                               }
+                               /* original initiator starts the update with the same task */
                                this->check = FALSE;
                                this->address = FALSE;
                                if (this->natd)