From: Jérémie Galarneau Date: Thu, 2 Apr 2015 22:37:18 +0000 (-0400) Subject: Fix: Validate lttng_create_session_live's timer is > 0 X-Git-Tag: v2.7.0-rc1~50 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=92805ee45b53cac25b0bb3894ba62d23956a3691;p=lttng-tools.git Fix: Validate lttng_create_session_live's timer is > 0 Signed-off-by: Jérémie Galarneau --- diff --git a/src/lib/lttng-ctl/lttng-ctl.c b/src/lib/lttng-ctl/lttng-ctl.c index 004b0cceb..42c9d1390 100644 --- a/src/lib/lttng-ctl/lttng-ctl.c +++ b/src/lib/lttng-ctl/lttng-ctl.c @@ -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; }