X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fclient.c;h=67e246b63505bb71819bc273cda7e861d2c7cadb;hp=8cf28a9d6323b4859b9563a374422be5489a7484;hb=51630bd8cf4eaffdc8da8fec3c10f46c8110ddea;hpb=19d3c73e4f87bd29d77b53e145af175cef7761bb diff --git a/src/bin/lttng-sessiond/client.c b/src/bin/lttng-sessiond/client.c index 8cf28a9d6..67e246b63 100644 --- a/src/bin/lttng-sessiond/client.c +++ b/src/bin/lttng-sessiond/client.c @@ -884,7 +884,7 @@ static int process_client_msg(struct command_ctx *cmd_ctx, int sock, if (need_tracing_session) { if (cmd_ctx->session->kernel_session == NULL) { ret = create_kernel_session(cmd_ctx->session); - if (ret < 0) { + if (ret != LTTNG_OK) { ret = LTTNG_ERR_KERN_SESS_FAIL; goto error; }