Don't invoke updown hook when flushing SAs for IKEv1, tasks will do it
This commit is contained in:
@@ -1695,7 +1695,8 @@ METHOD(ike_sa_manager_t, flush, void,
|
|||||||
while (enumerator->enumerate(enumerator, &entry, &segment))
|
while (enumerator->enumerate(enumerator, &entry, &segment))
|
||||||
{
|
{
|
||||||
charon->bus->set_sa(charon->bus, entry->ike_sa);
|
charon->bus->set_sa(charon->bus, entry->ike_sa);
|
||||||
/* as the delete never gets processed, fire down events */
|
if (entry->ike_sa->get_version(entry->ike_sa) == IKEV2)
|
||||||
|
{ /* as the delete never gets processed, fire down events */
|
||||||
switch (entry->ike_sa->get_state(entry->ike_sa))
|
switch (entry->ike_sa->get_state(entry->ike_sa))
|
||||||
{
|
{
|
||||||
case IKE_ESTABLISHED:
|
case IKE_ESTABLISHED:
|
||||||
@@ -1706,6 +1707,7 @@ METHOD(ike_sa_manager_t, flush, void,
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
entry->ike_sa->delete(entry->ike_sa);
|
entry->ike_sa->delete(entry->ike_sa);
|
||||||
}
|
}
|
||||||
enumerator->destroy(enumerator);
|
enumerator->destroy(enumerator);
|
||||||
|
|||||||
Reference in New Issue
Block a user