sessiond: return 'invalid protocol' error on reception error
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 26 Nov 2020 20:36:03 +0000 (15:36 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 8 Dec 2020 17:25:37 +0000 (12:25 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I15758543ae51dd2ce30b40d88a05ef0492ce0e51

src/bin/lttng-sessiond/cmd.c

index 2abcdf48eb5f161e207d48288c07cfa781116b2f..2ae0ba687e89df721bb9cb96385f2685f6b00277 100644 (file)
@@ -4295,8 +4295,7 @@ int cmd_register_trigger(struct command_ctx *cmd_ctx, int sock,
                        sock, trigger_payload.buffer.data, trigger_len);
        if (sock_recv_len < 0 || sock_recv_len != trigger_len) {
                ERR("Failed to receive \"register trigger\" command payload");
-               /* TODO: should this be a new error enum ? */
-               ret = LTTNG_ERR_INVALID_TRIGGER;
+               ret = LTTNG_ERR_INVALID_PROTOCOL;
                goto end;
        }
 
This page took 0.027618 seconds and 4 git commands to generate.