Fix: relayd: crash on creation of session by peer < 2.11
[lttng-tools.git] / src / common / trace-chunk.c
index 8ac00c12083e9acf9fe698238488b765f9a894a8..32792926928d6abb6ebed749460e3a970307c2f3 100644 (file)
@@ -1030,7 +1030,7 @@ enum lttng_trace_chunk_status lttng_trace_chunk_set_as_owner(
                status = LTTNG_TRACE_CHUNK_STATUS_ERROR;
                goto end;
        }
-       if (chunk->path[0] != '\0') {
+       if (chunk->path && chunk->path[0] != '\0') {
                ret = lttng_directory_handle_create_subdirectory_as_user(
                                session_output_directory,
                                chunk->path,
This page took 0.031203 seconds and 4 git commands to generate.