Fix: use of session_name instead of channel_name in condition hash
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 5 May 2017 19:36:15 +0000 (15:36 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 5 May 2017 19:36:15 +0000 (15:36 -0400)
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 <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/notification-thread-events.c

index 7de6595d8e51db3f6306eda112d493c7da0494b7..00a2bf66f559f1d5b8d6ee2c019e3dd0c2241534 100644 (file)
@@ -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(
This page took 0.026859 seconds and 4 git commands to generate.