From: Andreas Steffen Date: Tue, 16 Aug 2011 21:25:45 +0000 (+0200) Subject: fix double delete of old IKE_SA during reauthentication X-Git-Tag: 4.6.0~553 X-Git-Url: https://git.strongswan.org/?p=strongswan.git;a=commitdiff_plain;h=f69f067958772c3f471d4abffbca902cadf32547 fix double delete of old IKE_SA during reauthentication --- diff --git a/src/libcharon/sa/tasks/ike_reauth.c b/src/libcharon/sa/tasks/ike_reauth.c index b3423f9..24dc4da 100644 --- a/src/libcharon/sa/tasks/ike_reauth.c +++ b/src/libcharon/sa/tasks/ike_reauth.c @@ -144,8 +144,8 @@ static status_t process_i(private_ike_reauth_t *this, message_t *message) /* set threads active IKE_SA after checkin */ charon->bus->set_sa(charon->bus, this->ike_sa); - /* we always return failed to delete the obsolete IKE_SA */ - return FAILED; + /* we always destroy the obsolete IKE_SA */ + return DESTROY_ME; } /**