Fix: relayd: Dereference after null check
[lttng-tools.git] / src / bin / lttng-relayd / stream.c
index 1b4e38ac8fc2b0c9d209b39ac3a559fe9e284f98..3c61e3532e1fd2b810b278f9cb9c5c98391444af 100644 (file)
@@ -1052,6 +1052,7 @@ int stream_update_index(struct relay_stream *stream, uint64_t net_seq_num,
        uint64_t data_offset;
        struct relay_index *index;
 
+       assert(stream->trace_chunk);
        ASSERT_LOCKED(stream->lock);
        /* Get data offset because we are about to update the index. */
        data_offset = htobe64(stream->tracefile_size_current);
This page took 0.023203 seconds and 4 git commands to generate.