projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: sessiond: leak of trace chunk on destruction error
[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 aeb760a043f773a86ef9d417f31fe36f16854fda..e20a838da932051572ebd2db984bf3b9eddaa408 100644
(file)
--- a/
src/bin/lttng-relayd/cmd-2-4.c
+++ b/
src/bin/lttng-relayd/cmd-2-4.c
@@
-53,8
+53,7
@@
int cmd_create_session_2_4(const struct lttng_buffer_view *payload,
ERR("Session name too long");
goto error;
}
ERR("Session name too long");
goto error;
}
- strncpy(session_name, session_info.session_name,
- sizeof(session_info.session_name));
+ strncpy(session_name, session_info.session_name, LTTNG_NAME_MAX);
len = lttng_strnlen(session_info.hostname, sizeof(session_info.hostname));
if (len == sizeof(session_info.hostname) || len >= LTTNG_HOST_NAME_MAX) {
len = lttng_strnlen(session_info.hostname, sizeof(session_info.hostname));
if (len == sizeof(session_info.hostname) || len >= LTTNG_HOST_NAME_MAX) {
@@
-62,8
+61,8
@@
int cmd_create_session_2_4(const struct lttng_buffer_view *payload,
ERR("Session name too long");
goto error;
}
ERR("Session name too long");
goto error;
}
- strncpy(hostname, session_info.hostname,
- sizeof(session_info.hostname));
+ strncpy(hostname, session_info.hostname,
LTTNG_HOST_NAME_MAX);
+
*live_timer = be32toh(session_info.live_timer);
*snapshot = be32toh(session_info.snapshot);
*live_timer = be32toh(session_info.live_timer);
*snapshot = be32toh(session_info.snapshot);
This page took
0.023382 seconds
and
4
git commands to generate.