Fix: check return value of config_document_replace_element
[lttng-tools.git] / 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.026038 seconds and 5 git commands to generate.