From: Tobias Brunner Date: Mon, 24 Aug 2015 10:27:34 +0000 (+0200) Subject: ike: Fix half-open count for initiating SAs when initially checked in X-Git-Tag: 5.3.3rc2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df621413629d93d0a57e17e266b542631c5ec0c4;p=thirdparty%2Fstrongswan.git ike: Fix half-open count for initiating SAs when initially checked in --- diff --git a/src/libcharon/sa/ike_sa_manager.c b/src/libcharon/sa/ike_sa_manager.c index 9f4496a4e6..37d69874d5 100644 --- a/src/libcharon/sa/ike_sa_manager.c +++ b/src/libcharon/sa/ike_sa_manager.c @@ -1608,6 +1608,12 @@ METHOD(ike_sa_manager_t, checkin, void, entry = entry_create(); entry->ike_sa_id = ike_sa_id->clone(ike_sa_id); entry->ike_sa = ike_sa; + if (ike_sa->get_state(ike_sa) == IKE_CONNECTING) + { + entry->half_open = TRUE; + entry->other = other->clone(other); + put_half_open(this, entry); + } segment = put_entry(this, entry); }