Fix: consumerd: type confusion in lttng_consumer_send_error
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 7 Mar 2023 19:38:32 +0000 (14:38 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 5 Apr 2024 18:58:56 +0000 (14:58 -0400)
commitda151cc5d0a127c08de59d6861c20a617c192682
tree1b2ec8766f0a9ede6a9004dc5e8e8f6e0bbc0447
parent2e435abd2c3e09706fab156e1f965deccbbc68d5
Fix: consumerd: type confusion in lttng_consumer_send_error

lttng_consumer_send_error sends an lttcomm_return_code to the session
daemon. However, the size of lttcomm_sessiond_command was used.

This was probably missed since the function accepts an integer instead
of a proper enum type.

The size accepted by the function is changed to use lttcomm_return_code
and the size of a fixed-size type is used to send the error code to the
session daemon.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ib6a04969dd82857e3b8ac2ca2545cfb098b2d04f
src/bin/lttng-sessiond/manage-consumer.c
src/common/consumer/consumer.c
src/common/consumer/consumer.h
This page took 0.024725 seconds and 4 git commands to generate.