projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: Buggy string comparison in ust registry ht_match_event
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
ust-registry.c
diff --git
a/src/bin/lttng-sessiond/ust-registry.c
b/src/bin/lttng-sessiond/ust-registry.c
index 35911e322f49175a29e58f0784b32c966ca7f7db..3f1390dc3df1e65449700c12fa502215a9e29426 100644
(file)
--- a/
src/bin/lttng-sessiond/ust-registry.c
+++ b/
src/bin/lttng-sessiond/ust-registry.c
@@
-43,13
+43,13
@@
static int ht_match_event(struct cds_lfht_node *node, const void *_key)
key = _key;
/* It has to be a perfect match. */
key = _key;
/* It has to be a perfect match. */
- if (strncmp(event->name, key->name, sizeof(event->name))
!= 0
) {
+ if (strncmp(event->name, key->name, sizeof(event->name))) {
goto no_match;
}
/* It has to be a perfect match. */
if (strncmp(event->signature, key->signature,
goto no_match;
}
/* It has to be a perfect match. */
if (strncmp(event->signature, key->signature,
-
strlen(event->signature) != 0
)) {
+
strlen(event->signature)
)) {
goto no_match;
}
goto no_match;
}
This page took
0.024246 seconds
and
4
git commands to generate.