Fix: dereferencing null index pointer
authorAntoine Busque <abusque@efficios.com>
Sun, 13 Sep 2015 05:13:38 +0000 (01:13 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 24 Sep 2015 04:35:35 +0000 (00:35 -0400)
Signed-off-by: Antoine Busque <abusque@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/index.c

index 6c1caf40c1aa264ce353ffc4e0b60fdbef058cd8..0fd7bf6e0518152b322ec40aa4c8509bdb279bcc 100644 (file)
@@ -143,7 +143,7 @@ struct relay_index *relay_index_get_by_id_or_create(struct relay_stream *stream,
                index = relay_index_create(stream, net_seq_num);
                if (!index) {
                        ERR("Cannot create index for stream id %" PRIu64 " and seq_num %" PRIu64,
-                               index->stream->stream_handle, net_seq_num);
+                               stream->stream_handle, net_seq_num);
                        goto end;
                }
                oldindex = relay_index_add_unique(stream, index);
This page took 0.025298 seconds and 4 git commands to generate.