Fix: unchecked return value in sessiond path configuration
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 20 Aug 2018 19:22:53 +0000 (15:22 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 7 Sep 2018 16:14:40 +0000 (12:14 -0400)
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 <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/sessiond-config.c

index 0b540865667ec526f51001687b254a9d67c6e3a3..d514aefc75e8ba85639cf0f80a3e9f5ec54b51fd 100644 (file)
@@ -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,
This page took 0.026847 seconds and 4 git commands to generate.