]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
child-rekey: Avoid potential use-after-free for deleted SPIs array
authorTobias Brunner <tobias@strongswan.org>
Mon, 18 May 2026 13:47:46 +0000 (15:47 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 19 May 2026 15:27:33 +0000 (17:27 +0200)
src/libcharon/sa/ikev2/tasks/child_rekey.c

index fb3ba2aafaf73ee52c59c2d581a7ebd1ab1a4e97..764c3beb72f1c44a65d41664fbaf54fda82f58d1 100644 (file)
@@ -1190,6 +1190,7 @@ METHOD(task_t, migrate, void,
 
        this->ike_sa = ike_sa;
        this->collision = NULL;
+       this->deleted_spis = NULL;
        this->flags = 0;
 }