From: Jérémie Galarneau Date: Mon, 20 Aug 2018 19:22:53 +0000 (-0400) Subject: Fix: unchecked return value in sessiond path configuration X-Git-Tag: v2.11.0-rc1~144 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=2a9f757b25bbd1e8e50304a789c898fd0bf3a168;p=lttng-tools.git Fix: unchecked return value in sessiond path configuration The return values of the functions setting the sessiond's base paths are not checked. Reported-by: Coverity Scan (1382768 and 1382769, Unused value) Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/sessiond-config.c b/src/bin/lttng-sessiond/sessiond-config.c index 0b5408656..d514aefc7 100644 --- a/src/bin/lttng-sessiond/sessiond-config.c +++ b/src/bin/lttng-sessiond/sessiond-config.c @@ -269,6 +269,9 @@ int sessiond_config_init(struct sessiond_config *config) } else { ret = config_set_paths_non_root(config); } + if (ret < 0) { + goto end; + } /* 32 bits consumerd path setup */ ret = asprintf(&str, DEFAULT_USTCONSUMERD32_PATH,