Fix: check return value of config_document_replace_element
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 29 Jun 2016 15:07:27 +0000 (11:07 -0400)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Mon, 4 Jul 2016 19:42:28 +0000 (15:42 -0400)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
src/bin/lttng/commands/create.c

index fe9488b96a56d754cffc297286163d9267cdc935..5fdcbe3d2b26302b5d25d1a2d3fed865354e6f3a 100644 (file)
@@ -773,6 +773,12 @@ static int create_session_from_template(struct config_document *template,
        }
 
 
+       if (ret) {
+               ERR("%s", lttng_strerror(ret));
+               ret = CMD_ERROR;
+               goto error;
+       }
+
 
        /* Shm path */
        if (shm_path && config_document_element_exist(template, "/sessions/session/shared_memory_path")) {
This page took 0.026684 seconds and 5 git commands to generate.