jobs: Don't execute rekey CHILD_SA job on passive IKE_SAs

Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
This commit is contained in:
Thomas Egerer 2015-04-24 13:43:14 +02:00 committed by Tobias Brunner
parent edaba56ec7
commit e095d87bb6
1 changed files with 4 additions and 1 deletions

View File

@ -67,7 +67,10 @@ METHOD(job_t, execute, job_requeue_t,
}
else
{
ike_sa->rekey_child_sa(ike_sa, this->protocol, this->spi);
if (ike_sa->get_state(ike_sa) != IKE_PASSIVE)
{
ike_sa->rekey_child_sa(ike_sa, this->protocol, this->spi);
}
charon->ike_sa_manager->checkin(charon->ike_sa_manager, ike_sa);
}
return JOB_REQUEUE_NONE;