From: Mathieu Desnoyers Date: Tue, 25 Aug 2015 11:53:07 +0000 (-0400) Subject: Fix: reply error if get packet vstream fails X-Git-Tag: v2.7.0-rc2~91 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=78e607b70147bbbf2f51cc9a8eba58579d7d48b5;p=lttng-tools.git Fix: reply error if get packet vstream fails 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 c5a6e4edd..c41659ac5 100644 --- a/src/bin/lttng-relayd/live.c +++ b/src/bin/lttng-relayd/live.c @@ -1479,7 +1479,8 @@ int viewer_get_packet(struct relay_connection *conn) vstream = viewer_stream_get_by_id(be64toh(get_packet_info.stream_id)); if (!vstream) { - goto error; + reply.status = htobe32(LTTNG_VIEWER_GET_PACKET_ERR); + goto send_reply_nolock; } ctf_trace = vstream->stream->trace;