Do not query CHILD_SA during delete if they already expired
[strongswan.git] / src / libcharon / processing / jobs / inactivity_job.c
index 251b9ab..55fc009 100644 (file)
@@ -108,7 +108,7 @@ METHOD(job_t, execute, void,
                        {
                                DBG1(DBG_JOB, "deleting CHILD_SA after %d seconds "
                                         "of inactivity", this->timeout);
-                               status = ike_sa->delete_child_sa(ike_sa, proto, delete);
+                               status = ike_sa->delete_child_sa(ike_sa, proto, delete, FALSE);
                        }
                }
                if (status == DESTROY_ME)