From: Jérémie Galarneau Date: Wed, 10 Feb 2021 22:24:21 +0000 (-0500) Subject: Fix: sessiond: notification: unreachable code in switch-case X-Git-Tag: v2.13.0-rc1~335 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b42ada9013db5428c0fbca358e87c001f5b7e8c4;p=lttng-tools.git Fix: sessiond: notification: unreachable code in switch-case A copy paste error introduced in bc8daafb causes the initialization of the session credentials to not be initialized. Reported-by: Francis Deslauriers Signed-off-by: Jérémie Galarneau Change-Id: I50af722a498892bec764e115cfa6e9ca64302e05 --- diff --git a/src/bin/lttng-sessiond/notification-thread-events.c b/src/bin/lttng-sessiond/notification-thread-events.c index 16a7925d6..833b550f8 100644 --- a/src/bin/lttng-sessiond/notification-thread-events.c +++ b/src/bin/lttng-sessiond/notification-thread-events.c @@ -2610,9 +2610,9 @@ int handle_notification_thread_command_register_trigger( ret = evaluate_session_condition_for_client(condition, state, &evaluation, &object_uid, &object_gid); - break; LTTNG_OPTIONAL_SET(&object_creds.uid, object_uid); LTTNG_OPTIONAL_SET(&object_creds.gid, object_gid); + break; case LTTNG_OBJECT_TYPE_CHANNEL: ret = evaluate_channel_condition_for_client(condition, state, &evaluation, &object_uid,