From: Francis Deslauriers Date: Fri, 9 Feb 2018 21:56:49 +0000 (-0500) Subject: Fix: calling ht_{hash, match}_enum with wrong argument X-Git-Tag: v2.9.10~7 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=78c8ffd33e60e2eaee890cb2485e85a04b93381b;p=lttng-tools.git Fix: calling ht_{hash, match}_enum with wrong argument ht_hash_enum and ht_match_enum are currently called with the address of the pointer to a ust_registry_enum rather than the expected pointer to a ust_registry_enum. This means that those function calls would end up using garbage for hashing and comparing. Signed-off-by: Francis Deslauriers Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/ust-registry.c b/src/bin/lttng-sessiond/ust-registry.c index 46915a845..d4edb207a 100644 --- a/src/bin/lttng-sessiond/ust-registry.c +++ b/src/bin/lttng-sessiond/ust-registry.c @@ -556,8 +556,8 @@ struct ust_registry_enum * struct lttng_ht_iter iter; cds_lfht_lookup(session->enums->ht, - ht_hash_enum((void *) ®_enum_lookup, lttng_ht_seed), - ht_match_enum, ®_enum_lookup, &iter.iter); + ht_hash_enum((void *) reg_enum_lookup, lttng_ht_seed), + ht_match_enum, reg_enum_lookup, &iter.iter); node = lttng_ht_iter_get_node_str(&iter); if (!node) { goto end;