Fix: lttng_rotate_session does not handle socket close
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 10 Apr 2019 03:38:43 +0000 (23:38 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 24 Apr 2019 23:30:47 +0000 (19:30 -0400)
commit6e8ac53d0c18d83200fac0b2c221ef39306094d3
tree6a8070e44796128fa3de8f81e1f4cef0090af73d
parent66532187893d9679104bb9f56f9fe77cca10c6ec
Fix: lttng_rotate_session does not handle socket close

lttng_ctl_ask_sessiond may return 0 if the sessiond process is killed
or if its client socket is closed unexpectedly. This causes
lttng_rotate_session to assume a rotation command reply has
been received, resulting in a NULL pointer dereference later on.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/lib/lttng-ctl/rotate.c
This page took 0.025623 seconds and 4 git commands to generate.