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>
Tue, 8 Sep 2015 13:12:10 +0000 (09:12 -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 c5a6e4edd8450e2048e955b4abd6ca8219f59fe1..c41659ac5b178d865a73d501e7156477b18a0fc0 100644 (file)
@@ -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;
This page took 0.026964 seconds and 4 git commands to generate.