]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
child-delete: Only let SAs expire naturally if they not already did
authorTobias Brunner <tobias@strongswan.org>
Mon, 4 Sep 2017 16:11:39 +0000 (18:11 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 15 Sep 2017 10:16:45 +0000 (12:16 +0200)
src/libcharon/sa/ikev2/tasks/child_delete.c

index 2217295b6eca53caddeafcb56e522e090134966f..164f8fc031b263c5630aaedc7cdf9288edbf487a 100644 (file)
@@ -349,7 +349,7 @@ static status_t destroy_and_reestablish(private_child_delete_t *this)
                                                                        child_sa->get_unique_id(child_sa)), delay);
                                continue;
                        }
-                       else if (expire)
+                       else if (now < expire)
                        {       /* let it expire naturally */
                                continue;
                        }