Queue a mode config task as responder if we need a virtual IP

This commit is contained in:
Martin Willi
2012-06-27 11:42:56 +02:00
parent c2a391746c
commit 8ff45cfd99
2 changed files with 16 additions and 4 deletions
@@ -478,7 +478,7 @@ METHOD(task_t, process_r, status_t,
case AUTH_XAUTH_RESP_RSA:
case AUTH_HYBRID_RESP_RSA:
/* wait for XAUTH request */
return SUCCESS;
break;
default:
if (charon->ike_sa_manager->check_uniqueness(
charon->ike_sa_manager, this->ike_sa, FALSE))
@@ -494,8 +494,14 @@ METHOD(task_t, process_r, status_t,
lib->processor->queue_job(lib->processor, (job_t*)
adopt_children_job_create(
this->ike_sa->get_id(this->ike_sa)));
return SUCCESS;
break;
}
if (this->peer_cfg->get_virtual_ip(this->peer_cfg))
{
this->ike_sa->queue_task(this->ike_sa,
(task_t*)mode_config_create(this->ike_sa, TRUE));
}
return SUCCESS;
}
default:
return FAILED;
+8 -2
View File
@@ -506,7 +506,7 @@ METHOD(task_t, build_r, status_t,
case AUTH_XAUTH_RESP_RSA:
case AUTH_HYBRID_RESP_RSA:
/* wait for XAUTH request */
return SUCCESS;
break;
default:
if (charon->ike_sa_manager->check_uniqueness(
charon->ike_sa_manager, this->ike_sa, FALSE))
@@ -522,8 +522,14 @@ METHOD(task_t, build_r, status_t,
lib->processor->queue_job(lib->processor, (job_t*)
adopt_children_job_create(
this->ike_sa->get_id(this->ike_sa)));
return SUCCESS;
break;
}
if (this->peer_cfg->get_virtual_ip(this->peer_cfg))
{
this->ike_sa->queue_task(this->ike_sa,
(task_t*)mode_config_create(this->ike_sa, TRUE));
}
return SUCCESS;
}
default:
return FAILED;