]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Invoke ike_updown hooks for reauthenticated IKEv1 SAs
authorMartin Willi <martin@revosec.ch>
Mon, 16 Jan 2012 15:47:18 +0000 (16:47 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 20 Mar 2012 16:31:36 +0000 (17:31 +0100)
src/libcharon/processing/jobs/adopt_children_job.c
src/libcharon/sa/ike_sa.c

index 6f7e119da81236a89c7a8f800881496b49ce16ef..744b7f9b76832c3f2dc60b9eb2b6061b777e829d 100644 (file)
@@ -104,6 +104,7 @@ METHOD(job_t, execute, void,
                                        DBG1(DBG_IKE, "detected reauth of existing IKE_SA, "
                                                 "adopting %d children", children->get_count(children));
                                        ike_sa->set_state(ike_sa, IKE_DELETING);
+                                       charon->bus->ike_updown(charon->bus, ike_sa, FALSE);
                                        charon->ike_sa_manager->checkin_and_destroy(
                                                                                        charon->ike_sa_manager, ike_sa);
                                }
index 98d636fe1e17868a203e2c0d9e56c810632cb9db..cff7990f1e5e81a50b6574841c240da21132a667 100644 (file)
@@ -1318,6 +1318,7 @@ METHOD(ike_sa_t, delete_, status_t,
                case IKE_REKEYING:
                        if (this->version == IKEV1)
                        {       /* SA has been reauthenticated, delete */
+                               charon->bus->ike_updown(charon->bus, &this->public, FALSE);
                                break;
                        }
                        /* FALL */