Fix: kernel channel destroy on consumer if sent
[lttng-tools.git] / src / common / kernel-consumer / kernel-consumer.c
index ab4f604d7a5c525447cdf23453633ef0baa4318a..d15329ffab2f91c601a8b838af5cd805470f10ab 100644 (file)
@@ -918,6 +918,11 @@ int lttng_kconsumer_recv_cmd(struct lttng_consumer_local_data *ctx,
 
                health_code_update();
 
+               /* Stop right now if no channel was found. */
+               if (!channel) {
+                       goto end_nosignal;
+               }
+
                /*
                 * This command should ONLY be issued for channel with streams set in
                 * no monitor mode.
This page took 0.024257 seconds and 5 git commands to generate.