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

Signed-off-by: Thomas Egerer <[email protected]>
This commit is contained in:
Thomas Egerer
2015-08-04 11:16:13 +02:00
committed by Tobias Brunner
parent edaba56ec7
commit e095d87bb6
@@ -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;