From: Jérémie Galarneau Date: Fri, 5 May 2017 19:36:15 +0000 (-0400) Subject: Fix: use of session_name instead of channel_name in condition hash X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=8f56701fa4b73a75378e88a84b0500e18b51ff49 Fix: use of session_name instead of channel_name in condition hash 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 --- 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(