ikev1: Don't call updown hook etc. when deleting redundant CHILD_SAs
authorTobias Brunner <tobias@strongswan.org>
Wed, 20 Apr 2016 12:14:05 +0000 (14:14 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 6 May 2016 13:27:35 +0000 (15:27 +0200)
Fixes #1421.

src/libcharon/sa/ikev1/task_manager_v1.c

index f0c456e..7aa2c64 100644 (file)
@@ -1754,6 +1754,7 @@ METHOD(task_manager_t, queue_child_rekey, void,
        {
                if (is_redundant(this, child_sa))
                {
+                       child_sa->set_state(child_sa, CHILD_REKEYED);
                        queue_task(this, (task_t*)quick_delete_create(this->ike_sa,
                                                                                                protocol, spi, FALSE, FALSE));
                }