Do not query CHILD_SA during delete if they already expired
[strongswan.git] / src / libcharon / control / controller.c
index 4aded8f..11f4038 100644 (file)
@@ -368,7 +368,7 @@ METHOD(job_t, terminate_child_execute, void,
 
        charon->bus->set_sa(charon->bus, ike_sa);
        if (ike_sa->delete_child_sa(ike_sa, child_sa->get_protocol(child_sa),
-                                                               child_sa->get_spi(child_sa, TRUE)) != DESTROY_ME)
+                                       child_sa->get_spi(child_sa, TRUE), FALSE) != DESTROY_ME)
        {
                charon->ike_sa_manager->checkin(charon->ike_sa_manager, ike_sa);
                listener->status = SUCCESS;