ikev1: Signal IKE_SA connection failure via bus
This is mainly for HA where a passive SA was already created when the IKE keys were derived. If e.g. an authentication error occurs later that SA wouldn't get cleaned up.
This commit is contained in:
parent
4899a4c025
commit
85a6fe2306
|
@ -721,6 +721,7 @@ METHOD(task_manager_t, initiate, status_t,
|
|||
{
|
||||
case IKE_CONNECTING:
|
||||
/* close after sending an INFORMATIONAL when unestablished */
|
||||
charon->bus->ike_updown(charon->bus, this->ike_sa, FALSE);
|
||||
return FAILED;
|
||||
case IKE_DELETING:
|
||||
/* close after sending a DELETE */
|
||||
|
|
Loading…
Reference in New Issue