From 8f56701fa4b73a75378e88a84b0500e18b51ff49 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Fri, 5 May 2017 15:36:15 -0400 Subject: [PATCH] Fix: use of session_name instead of channel_name in condition hash MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reported-by: Coverity Scan ** CID 1374796: Error handling issues (CHECKED_RETURN) /src/lib/lttng-ctl/channel.c: 84 in receive_message() Signed-off-by: Jérémie Galarneau --- src/bin/lttng-sessiond/notification-thread-events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/lttng-sessiond/notification-thread-events.c b/src/bin/lttng-sessiond/notification-thread-events.c index 7de6595d8..00a2bf66f 100644 --- a/src/bin/lttng-sessiond/notification-thread-events.c +++ b/src/bin/lttng-sessiond/notification-thread-events.c @@ -258,7 +258,7 @@ unsigned long lttng_condition_buffer_usage_hash( hash ^= hash_key_str(condition->session_name, lttng_ht_seed); } if (condition->channel_name) { - hash ^= hash_key_str(condition->session_name, lttng_ht_seed); + hash ^= hash_key_str(condition->channel_name, lttng_ht_seed); } if (condition->domain.set) { hash ^= hash_key_ulong( -- 2.34.1