Properly trigger ike_updown() event if IKEv1 DPD times out
authorMartin Willi <martin@revosec.ch>
Tue, 4 Dec 2012 10:11:50 +0000 (11:11 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 4 Dec 2012 10:11:50 +0000 (11:11 +0100)
Fixes missing RADIUS Accounting Stop, #257.

src/libcharon/processing/jobs/dpd_timeout_job.c

index 91a76bb..64a9785 100644 (file)
@@ -77,6 +77,7 @@ METHOD(job_t, execute, job_requeue_t,
                if (use_time < this->check)
                {
                        DBG1(DBG_JOB, "DPD check timed out, enforcing DPD action");
+                       charon->bus->ike_updown(charon->bus, ike_sa, FALSE);
                        ike_sa->reestablish(ike_sa);
                        charon->ike_sa_manager->checkin_and_destroy(charon->ike_sa_manager,
                                                                                                                ike_sa);