Do not query CHILD_SA during delete if they already expired
[strongswan.git] / src / libcharon / plugins / ha / ha_cache.c
index 970a8a2..7b7a953 100644 (file)
@@ -212,7 +212,8 @@ static status_t rekey_children(ike_sa_t *ike_sa)
                        DBG1(DBG_CFG, "resyncing CHILD_SA using a delete");
                        status = ike_sa->delete_child_sa(ike_sa,
                                                                                         child_sa->get_protocol(child_sa),
                        DBG1(DBG_CFG, "resyncing CHILD_SA using a delete");
                        status = ike_sa->delete_child_sa(ike_sa,
                                                                                         child_sa->get_protocol(child_sa),
-                                                                                        child_sa->get_spi(child_sa, TRUE));
+                                                                                        child_sa->get_spi(child_sa, TRUE),
+                                                                                        FALSE);
                }
                else
                {
                }
                else
                {