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:12:29 +0000 (12:12 -0400)
commitfbd566c25787aa7134e84efcfb7d3569f27d3350
treef63e3e12b05cc4319fcfcc8c424f5c6c3986697f
parentc91ccadee5bfbc94a95540e17c879ce976caf6a2
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: I318e6a8d145373779d11557a70e43abca9783e5c
src/bin/lttng-sessiond/manage-consumer.cpp
src/common/consumer/consumer.cpp
src/common/consumer/consumer.hpp
This page took 0.026155 seconds and 4 git commands to generate.