projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lttng-ctl: add local declarations for obsolete functions in lttng-ctl.c
[lttng-tools.git]
/
src
/
bin
/
lttng-relayd
/
cmd-2-4.c
diff --git
a/src/bin/lttng-relayd/cmd-2-4.c
b/src/bin/lttng-relayd/cmd-2-4.c
index e20a838da932051572ebd2db984bf3b9eddaa408..008be4cf0db901b038e98f3398dc097861847ea4 100644
(file)
--- a/
src/bin/lttng-relayd/cmd-2-4.c
+++ b/
src/bin/lttng-relayd/cmd-2-4.c
@@
-52,6
+52,10
@@
int cmd_create_session_2_4(const struct lttng_buffer_view *payload,
ret = -ENAMETOOLONG;
ERR("Session name too long");
goto error;
+ } else if (len == 0) {
+ ret = -EINVAL;
+ ERR("Session name can't be of length 0");
+ goto error;
}
strncpy(session_name, session_info.session_name, LTTNG_NAME_MAX);
This page took
0.02739 seconds
and
4
git commands to generate.