proper reauthentication:

IKE_SA is closed completely before the new is initiated, 
  resolves some issues when a dynamic IP is requested from a pool
This commit is contained in:
Martin Willi
2007-06-14 08:13:05 +00:00
parent eda454a261
commit 26424f03c3
7 changed files with 28 additions and 78 deletions
+3 -2
View File
@@ -170,8 +170,9 @@ static status_t process_i(private_ike_rekey_t *this, message_t *message)
{
case FAILED:
/* rekeying failed, fallback to old SA */
if (!(this->collision &&
this->collision->get_type(this->collision) == IKE_DELETE))
if (!(this->collision && (
this->collision->get_type(this->collision) == IKE_DELETE ||
this->collision->get_type(this->collision) == IKE_REAUTH)))
{
job_t *job;
u_int32_t retry = RETRY_INTERVAL - (random() % RETRY_JITTER);