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: abort called on undefined client command
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
client.cpp
diff --git
a/src/bin/lttng-sessiond/client.cpp
b/src/bin/lttng-sessiond/client.cpp
index a52062e07f877ddc08ccf84604a56c5f2ff1fd59..97a6d9b724c56afe9c24f9839444b19c5af8c8e7 100644
(file)
--- a/
src/bin/lttng-sessiond/client.cpp
+++ b/
src/bin/lttng-sessiond/client.cpp
@@
-1003,6
+1003,13
@@
static int process_client_msg(struct command_ctx *cmd_ctx, int *sock,
bool need_domain;
bool need_consumerd;
bool need_domain;
bool need_consumerd;
+ if (!lttcomm_sessiond_command_is_valid((lttcomm_sessiond_command) cmd_ctx->lsm.cmd_type)) {
+ ERR("Unknown client command received: command id = %" PRIu32,
+ cmd_ctx->lsm.cmd_type);
+ ret = LTTNG_ERR_UND;
+ goto error;
+ }
+
DBG("Processing client command '%s\' (%d)",
lttcomm_sessiond_command_str((lttcomm_sessiond_command) cmd_ctx->lsm.cmd_type),
cmd_ctx->lsm.cmd_type);
DBG("Processing client command '%s\' (%d)",
lttcomm_sessiond_command_str((lttcomm_sessiond_command) cmd_ctx->lsm.cmd_type),
cmd_ctx->lsm.cmd_type);
This page took
0.029248 seconds
and
4
git commands to generate.