From: Tobias Brunner Date: Tue, 5 Oct 2010 15:59:48 +0000 (+0200) Subject: Allow responder to use ike_mobike_t.roam. X-Git-Tag: 4.5.0~101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5770f864fc78d5f9b92bd885c37e3f952a31a97;p=thirdparty%2Fstrongswan.git Allow responder to use ike_mobike_t.roam. After getting a response the responder updates the IPsec SAs. --- diff --git a/src/libcharon/sa/tasks/ike_mobike.c b/src/libcharon/sa/tasks/ike_mobike.c index 3d7827c37e..1773f6b54d 100644 --- a/src/libcharon/sa/tasks/ike_mobike.c +++ b/src/libcharon/sa/tasks/ike_mobike.c @@ -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)