From: Tobias Brunner Date: Mon, 18 Feb 2013 11:05:58 +0000 (+0100) Subject: Trigger an updown event when destroying an IKE_SA based on INITIAL_CONTACT X-Git-Tag: 5.0.3dr3~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e935c6fe08bb0bd2c7640248d4d33a9e615096d;p=thirdparty%2Fstrongswan.git Trigger an updown event when destroying an IKE_SA based on INITIAL_CONTACT In other cases (i.e. when functions return DESTROY_ME) the event should already be triggered, but not in this forced situation. --- diff --git a/src/libcharon/sa/ike_sa_manager.c b/src/libcharon/sa/ike_sa_manager.c index 2ac8c31233..df46b35a27 100644 --- a/src/libcharon/sa/ike_sa_manager.c +++ b/src/libcharon/sa/ike_sa_manager.c @@ -1782,6 +1782,7 @@ METHOD(ike_sa_manager_t, check_uniqueness, bool, { DBG1(DBG_IKE, "destroying duplicate IKE_SA for peer '%Y', " "received INITIAL_CONTACT", other); + charon->bus->ike_updown(charon->bus, duplicate, FALSE); checkin_and_destroy(this, duplicate); continue; }