aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/sa/ike_sa.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2008-10-09 08:25:11 +0000
committerMartin Willi <martin@strongswan.org>2008-10-09 08:25:11 +0000
commitf0974eb2c2c71cae9165347529f0f186e701835b (patch)
treef4252d89cb5c340ce78b6332f58ab5cbdc67eeec /src/charon/sa/ike_sa.c
parent03d5f41137d9ad571dff96b3836abaaccbb6b5a4 (diff)
downloadstrongswan-f0974eb2c2c71cae9165347529f0f186e701835b.tar.bz2
strongswan-f0974eb2c2c71cae9165347529f0f186e701835b.tar.xz
fixed MOBIKE roaming if clients address changes
Diffstat (limited to 'src/charon/sa/ike_sa.c')
-rw-r--r--src/charon/sa/ike_sa.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/charon/sa/ike_sa.c b/src/charon/sa/ike_sa.c
index 12f4ebe03..af2c7d0b0 100644
--- a/src/charon/sa/ike_sa.c
+++ b/src/charon/sa/ike_sa.c
@@ -1451,7 +1451,7 @@ static status_t process_message(private_ike_sa_t *this, message_t *message)
charon->scheduler->schedule_job(charon->scheduler, job,
HALF_OPEN_IKE_SA_TIMEOUT);
}
-
+ this->time.inbound = time(NULL);
/* check if message is trustworthy, and update host information */
if (this->state == IKE_CREATED || this->state == IKE_CONNECTING ||
message->get_exchange_type(message) != IKE_SA_INIT)
@@ -1460,7 +1460,6 @@ static status_t process_message(private_ike_sa_t *this, message_t *message)
{ /* with MOBIKE, we do no implicit updates */
update_hosts(this, me, other);
}
- this->time.inbound = time(NULL);
}
status = this->task_manager->process_message(this->task_manager, message);
if (status != DESTROY_ME)
@@ -2242,9 +2241,7 @@ static status_t roam(private_ike_sa_t *this, bool address)
src->destroy(src);
return SUCCESS;
}
- /* old address is not valid anymore, try with new one */
- src->set_port(src, this->my_host->get_port(this->my_host));
- set_my_host(this, src);
+ src->destroy(src);
}
/* update addresses with mobike, if supported ... */