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:
1 parent
edaba56ec7
commit
e095d87bb6
1 file changed
+4
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user