From: Antoine Busque Date: Sun, 13 Sep 2015 05:13:38 +0000 (-0400) Subject: Fix: dereferencing null index pointer X-Git-Tag: v2.7.0-rc2~29 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=fb1c848a87e99b626eddcfe1fc0f03f139543301;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 cb7ae3db9..5b5c711cb 100644 --- a/src/bin/lttng-relayd/index.c +++ b/src/bin/lttng-relayd/index.c @@ -144,7 +144,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);