Fix: reply error if get packet vstream fails
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 25 Aug 2015 11:53:07 +0000 (07:53 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 24 Sep 2015 02:22:51 +0000 (22:22 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/live.c

index 7b1602d36a757c9638e2bec0dc73c8b953b58f09..14b30727390832d90740336cafed39520fa9291b 100644 (file)
@@ -1478,7 +1478,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;
This page took 0.026852 seconds and 4 git commands to generate.