ikev1: Don't trigger updown event and close action for redundant CHILD_SAs
This commit is contained in:
@@ -38,6 +38,7 @@
|
|||||||
|
|
||||||
#include <daemon.h>
|
#include <daemon.h>
|
||||||
#include <encoding/payloads/delete_payload.h>
|
#include <encoding/payloads/delete_payload.h>
|
||||||
|
#include <sa/ikev1/task_manager_v1.h>
|
||||||
|
|
||||||
typedef struct private_quick_delete_t private_quick_delete_t;
|
typedef struct private_quick_delete_t private_quick_delete_t;
|
||||||
|
|
||||||
@@ -106,6 +107,10 @@ static bool delete_child(private_quick_delete_t *this, protocol_id_t protocol,
|
|||||||
}
|
}
|
||||||
|
|
||||||
rekeyed = child_sa->get_state(child_sa) == CHILD_REKEYED;
|
rekeyed = child_sa->get_state(child_sa) == CHILD_REKEYED;
|
||||||
|
if (!rekeyed)
|
||||||
|
{
|
||||||
|
rekeyed = ikev1_child_sa_is_redundant(this->ike_sa, child_sa, NULL);
|
||||||
|
}
|
||||||
child_sa->set_state(child_sa, CHILD_DELETING);
|
child_sa->set_state(child_sa, CHILD_DELETING);
|
||||||
|
|
||||||
my_ts = linked_list_create_from_enumerator(
|
my_ts = linked_list_create_from_enumerator(
|
||||||
|
|||||||
Reference in New Issue
Block a user