Fix: relayd: live: invalid return code on DETACH_SESSION
[lttng-tools.git] / src / bin / lttng-relayd / live.c
index 7d6dc1bc20a03a5af6cafe1e5ef170be1b7f5cb8..ccba8d70594c278aaabfee2a6d4b6687cd0adc34 100644 (file)
@@ -1854,6 +1854,8 @@ int viewer_get_packet(struct relay_connection *conn)
        goto send_reply;
 
 error:
+       /* No payload to send on error. */
+       reply_size = sizeof(reply_header);
        reply_header.status = htobe32(LTTNG_VIEWER_GET_PACKET_ERR);
 
 send_reply:
This page took 0.022664 seconds and 4 git commands to generate.