From: Tobias Brunner Date: Wed, 20 Apr 2022 12:45:41 +0000 (+0200) Subject: ikev2: Maintain labels during make-before-break reauthentication X-Git-Tag: 5.9.6~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f4d6539b49fc3a1f63e6c922d560b6f96a09b049;p=thirdparty%2Fstrongswan.git ikev2: Maintain labels during make-before-break reauthentication --- diff --git a/src/libcharon/sa/ikev2/task_manager_v2.c b/src/libcharon/sa/ikev2/task_manager_v2.c index 555fb86c72..f70768fa81 100644 --- a/src/libcharon/sa/ikev2/task_manager_v2.c +++ b/src/libcharon/sa/ikev2/task_manager_v2.c @@ -1946,6 +1946,7 @@ static void trigger_mbb_reauth(private_task_manager_t *this) child_create->use_marks(child_create, child_sa->get_mark(child_sa, TRUE).value, child_sa->get_mark(child_sa, FALSE).value); + child_create->use_label(child_create, child_sa->get_label(child_sa)); /* interface IDs are not migrated as the new CHILD_SAs on old and new * IKE_SA go though regular updown events */ new->queue_task(new, &child_create->task);