Fix: relayd: fail to create session when trace chunk is not found
[lttng-tools.git] / src / bin / lttng-relayd / session.c
index 00dfbd7d2e6e5c873b01dd66b80a7d3098198162..1a1cadfdfa1ba3829efe46f217b014fa4983e511 100644 (file)
@@ -366,6 +366,7 @@ struct relay_session *session_create(const char *session_name,
                        ERR("Could not find trace chunk: sessiond = {%s}, sessiond session id = %" PRIu64 ", trace chunk id = %" PRIu64,
                                        uuid_str, *id_sessiond,
                                        *current_chunk_id);
+                       goto error;
                 }
        } else if (!id_sessiond) {
                /*
This page took 0.03144 seconds and 4 git commands to generate.