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:
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;
|
||||
|
|
Loading…
Reference in New Issue