From: Mathieu Desnoyers Date: Thu, 3 Sep 2015 21:17:29 +0000 (-0400) Subject: Fix: relay: viewer_get_next_index handle null vstream X-Git-Tag: v2.7.0-rc2~85 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=bdb11f09caf5a0c0766dc2cb2f4c59df342faf52;p=lttng-tools.git Fix: relay: viewer_get_next_index handle null vstream Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-relayd/live.c b/src/bin/lttng-relayd/live.c index 6f69b1058..bafdf35ce 100644 --- a/src/bin/lttng-relayd/live.c +++ b/src/bin/lttng-relayd/live.c @@ -1454,9 +1454,11 @@ send_reply: } health_code_update(); - DBG("Index %" PRIu64 " for stream %" PRIu64 " sent", - vstream->last_sent_index, - vstream->stream->stream_handle); + if (vstream) { + DBG("Index %" PRIu64 " for stream %" PRIu64 " sent", + vstream->last_sent_index, + vstream->stream->stream_handle); + } end: if (metadata_viewer_stream) { viewer_stream_put(metadata_viewer_stream);