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 16:21:10 +0000 (12:21 -0400)
commita73d94960e33d71f20cb99ea648cd24d064aabee
tree30b6874c1a7b4251aa49f3e456da989f67593723
parentc0e55b9aa6c04ffffa8ca9a164b09e07df7f7a5d
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.026205 seconds and 4 git commands to generate.