projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: NULL pointer dereference in lttng_condition_serialize
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
notification-thread-events.c
diff --git
a/src/bin/lttng-sessiond/notification-thread-events.c
b/src/bin/lttng-sessiond/notification-thread-events.c
index 7de6595d8e51db3f6306eda112d493c7da0494b7..8bc020f960f24f691c6e0a44e51aaac6239084c7 100644
(file)
--- 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);
}
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(
}
if (condition->domain.set) {
hash ^= hash_key_ulong(
@@
-405,6
+405,7
@@
int notification_thread_client_subscribe(struct notification_client *client,
&iter);
node = cds_lfht_iter_get_node(&iter);
if (!node) {
&iter);
node = cds_lfht_iter_get_node(&iter);
if (!node) {
+ free(client_list_element);
goto end_unlock;
}
goto end_unlock;
}
This page took
0.024733 seconds
and
4
git commands to generate.