projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: Validate lttng_create_session_live's timer is > 0
[lttng-tools.git]
/
src
/
lib
/
lttng-ctl
/
lttng-ctl.c
diff --git
a/src/lib/lttng-ctl/lttng-ctl.c
b/src/lib/lttng-ctl/lttng-ctl.c
index 004b0ccebf1c7b24e49674e2f3d66d53bfde7abe..42c9d13907f4594f60f70ec01bc76fa1242f91f0 100644
(file)
--- 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;
struct lttcomm_session_msg lsm;
struct lttng_uri *uris = NULL;
- if (name == NULL) {
+ if (name == NULL
|| timer_interval == 0
) {
return -LTTNG_ERR_INVALID;
}
return -LTTNG_ERR_INVALID;
}
This page took
0.02384 seconds
and
4
git commands to generate.