From 4a2eb0cab793f67a94d7d9d10b534057804def95 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Mon, 29 Apr 2013 17:58:51 -0400 Subject: [PATCH] Fix: add missing goto error in UST consumer On error, a channel set to NULL can be used causing a segfault when receiving the metadata. Reported-by: Mathieu Desnoyers Signed-off-by: David Goulet --- src/common/ust-consumer/ust-consumer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/ust-consumer/ust-consumer.c b/src/common/ust-consumer/ust-consumer.c index 2bbc3f5e4..44a8240b0 100644 --- a/src/common/ust-consumer/ust-consumer.c +++ b/src/common/ust-consumer/ust-consumer.c @@ -1049,6 +1049,7 @@ int lttng_ustconsumer_recv_cmd(struct lttng_consumer_local_data *ctx, if (!channel) { ERR("UST consumer push metadata %" PRIu64 " not found", key); ret_code = LTTNG_ERR_UST_CHAN_NOT_FOUND; + goto end_msg_sessiond; } /* Tell session daemon we are ready to receive the metadata. */ -- 2.34.1