Fix: kernel channel destroy on consumer if sent
[lttng-tools.git] / src / common / kernel-consumer / kernel-consumer.c
index 712ca90f33070a86e696fd2d71b3227e877e80ec..e4fd2afee4805f91e03a5546725b272fd17888e3 100644 (file)
@@ -809,6 +809,11 @@ int lttng_kconsumer_recv_cmd(struct lttng_consumer_local_data *ctx,
                        goto end_nosignal;
                }
 
+               /* 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.025132 seconds and 4 git commands to generate.