From cb2e451438cacef211d42ab9d46aa20af9fc598c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Tue, 22 Feb 2022 17:46:14 -0500 Subject: [PATCH] Fix: lttng-sessiond: null pointer used to log session name MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The rotation thread attempts to log the name of a session when it isn't found. Signed-off-by: Jérémie Galarneau Change-Id: I7bd3f9e82cadc9f1c8acbb847a88e0ff1ed813e3 --- src/bin/lttng-sessiond/rotation-thread.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/bin/lttng-sessiond/rotation-thread.c b/src/bin/lttng-sessiond/rotation-thread.c index cf18c8498..590b95dd2 100644 --- a/src/bin/lttng-sessiond/rotation-thread.c +++ b/src/bin/lttng-sessiond/rotation-thread.c @@ -584,8 +584,6 @@ int handle_job_queue(struct rotation_thread_handle *handle, session_lock_list(); session = job->session; if (!session) { - DBG("Session \"%s\" not found", - session->name); /* * This is a non-fatal error, and we cannot report it to * the user (timer), so just print the error and -- 2.34.1