From: Antoine Busque Date: Sun, 13 Sep 2015 05:13:38 +0000 (-0400) Subject: Fix: dereferencing null index pointer X-Git-Tag: v2.6.1~11 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=66afc7126cfeeca7926f9660f5906429a0e687a5;p=lttng-tools.git Fix: dereferencing null index pointer Signed-off-by: Antoine Busque Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-relayd/index.c b/src/bin/lttng-relayd/index.c index 6c1caf40c..0fd7bf6e0 100644 --- a/src/bin/lttng-relayd/index.c +++ b/src/bin/lttng-relayd/index.c @@ -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);