]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
child-create: Consider security label when comparing CHILD_SAs
authorTobias Brunner <tobias@strongswan.org>
Mon, 20 Dec 2021 14:58:46 +0000 (15:58 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 14 Apr 2022 16:42:01 +0000 (18:42 +0200)
src/libcharon/sa/ikev2/tasks/child_create.c

index 092ac72a6a78b74f9737a27d7f601031c77958a2..389ffb2d75833db40c74873ec3e5d9958d488aae 100644 (file)
@@ -1093,7 +1093,8 @@ static bool child_sa_equals(child_sa_t *a, child_sa_t *b)
                a->get_mark(a, TRUE).value == b->get_mark(b, TRUE).value &&
                a->get_mark(a, FALSE).value == b->get_mark(b, FALSE).value &&
                a->get_if_id(a, TRUE) == b->get_if_id(b, TRUE) &&
-               a->get_if_id(a, FALSE) == b->get_if_id(b, FALSE);
+               a->get_if_id(a, FALSE) == b->get_if_id(b, FALSE) &&
+               sec_labels_equal(a->get_label(a), b->get_label(b));
 }
 
 /**