Fix: Validate lttng_create_session_live's timer is > 0
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 2 Apr 2015 22:37:18 +0000 (18:37 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 2 Apr 2015 22:37:18 +0000 (18:37 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/lib/lttng-ctl/lttng-ctl.c

index 004b0ccebf1c7b24e49674e2f3d66d53bfde7abe..42c9d13907f4594f60f70ec01bc76fa1242f91f0 100644 (file)
@@ -1954,7 +1954,7 @@ int lttng_create_session_live(const char *name, const char *url,
        struct lttcomm_session_msg lsm;
        struct lttng_uri *uris = NULL;
 
-       if (name == NULL) {
+       if (name == NULL || timer_interval == 0) {
                return -LTTNG_ERR_INVALID;
        }
 
This page took 0.025017 seconds and 4 git commands to generate.