From: Tobias Brunner Date: Mon, 23 Jun 2014 08:26:04 +0000 (+0200) Subject: ikev2: Send retransmits using the latest known addresses X-Git-Tag: 5.2.1rc1~12^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1aa18b2e841e065eacb0d2c4f17c3546912c358;p=thirdparty%2Fstrongswan.git ikev2: Send retransmits using the latest known addresses For instance, if a DPD exchange is initiated by the gateway when a mobile client is roaming and it then gets a new IP address and sends an address update via MOBIKE, the DPD retransmits would still be sent to the old address and the SA would eventually get closed. --- diff --git a/src/libcharon/sa/ikev2/task_manager_v2.c b/src/libcharon/sa/ikev2/task_manager_v2.c index 9b57d2ced9..eb7df3516b 100644 --- a/src/libcharon/sa/ikev2/task_manager_v2.c +++ b/src/libcharon/sa/ikev2/task_manager_v2.c @@ -348,7 +348,9 @@ METHOD(task_manager_t, retransmit, status_t, } if (!mobike) { - send_packets(this, this->initiating.packets, NULL, NULL); + send_packets(this, this->initiating.packets, + this->ike_sa->get_my_host(this->ike_sa), + this->ike_sa->get_other_host(this->ike_sa)); } else {