As a responder, don't start a TRANSACTION request if we expect one from the initiator

This commit is contained in:
Martin Willi 2012-06-29 13:40:05 +02:00
parent 4271838f9c
commit 9d2968e272
2 changed files with 4 additions and 2 deletions

View File

@ -496,7 +496,8 @@ METHOD(task_t, process_r, status_t,
this->ike_sa->get_id(this->ike_sa)));
break;
}
if (this->peer_cfg->get_virtual_ip(this->peer_cfg))
if (this->peer_cfg->get_pool(this->peer_cfg) == NULL &&
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));

View File

@ -524,7 +524,8 @@ METHOD(task_t, build_r, status_t,
this->ike_sa->get_id(this->ike_sa)));
break;
}
if (this->peer_cfg->get_virtual_ip(this->peer_cfg))
if (this->peer_cfg->get_pool(this->peer_cfg) == NULL &&
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));