From 8fa0b55b4931b9b5294120b20259be73b0b87ad5 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Fri, 14 Dec 2012 15:11:49 -0500 Subject: [PATCH] Fix: Wrong check of node when cleaning up ht The node should NOT be in the hash table to ignore the deletion and not the contrary. Signed-off-by: David Goulet --- src/common/consumer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/consumer.c b/src/common/consumer.c index 4f83639d5..16521a8b8 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -243,7 +243,7 @@ static void destroy_relayd(struct consumer_relayd_sock_pair *relayd) lttng_ht_lookup(relayd_session_id_ht, (void *)((unsigned long) relayd->sessiond_session_id), &iter); node = lttng_ht_iter_get_node_ulong(&iter); - if (node != NULL) { + if (node == NULL) { /* We assume the relayd is being or is destroyed */ return; } -- 2.34.1