Invoke updown hook if IKE_SA delete is enforced in deleting state
authorMartin Willi <martin@revosec.ch>
Tue, 6 Apr 2010 09:58:29 +0000 (09:58 +0000)
committerMartin Willi <martin@revosec.ch>
Tue, 6 Apr 2010 10:11:28 +0000 (12:11 +0200)
src/libcharon/sa/ike_sa.c

index 1ca396d..023f074 100644 (file)
@@ -1561,6 +1561,7 @@ static status_t delete_(private_ike_sa_t *this)
                default:
                        DBG1(DBG_IKE, "destroying IKE_SA in state %N "
                                "without notification", ike_sa_state_names, this->state);
+                       charon->bus->ike_updown(charon->bus, &this->public, FALSE);
                        break;
        }
        return DESTROY_ME;