Fix: sessiond: unchecked return value
[lttng-tools.git] / src / bin / lttng-sessiond / client.c
index 84a177b9cc814ee868168a40719ed2a02a6763f3..4cfa60067f2ae31a72b2f97b9cce55437d2cdc20 100644 (file)
@@ -133,7 +133,10 @@ static int setup_empty_lttng_msg(struct command_ctx *cmd_ctx)
        int ret;
        const struct lttcomm_lttng_msg llm = {};
 
-       lttng_dynamic_buffer_set_size(&cmd_ctx->reply_payload.buffer, 0);
+       ret = lttng_dynamic_buffer_set_size(&cmd_ctx->reply_payload.buffer, 0);
+       if (ret) {
+               goto end;
+       }
 
        /* Append place-holder reply header. */
        ret = lttng_dynamic_buffer_append(
This page took 0.031252 seconds and 4 git commands to generate.