From: Jérémie Galarneau Date: Thu, 3 Oct 2019 00:28:39 +0000 (-0400) Subject: Fix: liblttng-ctl: wrong variable used during argument validation X-Git-Tag: v2.11.0~34 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0894a0c74c4e3b5b9006cf1aaf8e563d36fdae5f;p=lttng-tools.git Fix: liblttng-ctl: wrong variable used during argument validation Local 'handle' variable is used to check for NULL arguments while the provided argument is named '_handle'. This results in failures to destroy a session. Rename the variable used in the argument check. Signed-off-by: Jérémie Galarneau --- diff --git a/src/lib/lttng-ctl/destruction-handle.c b/src/lib/lttng-ctl/destruction-handle.c index d2559646f..55e160436 100644 --- a/src/lib/lttng-ctl/destruction-handle.c +++ b/src/lib/lttng-ctl/destruction-handle.c @@ -404,7 +404,7 @@ enum lttng_error_code lttng_destroy_session_ext(const char *session_name, int sessiond_socket = -1; struct lttng_destruction_handle *handle = NULL; - if (!session_name || !handle) { + if (!session_name || !_handle) { ret_code = LTTNG_ERR_INVALID; goto error; }