X-Git-Url: http://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Flib%2Flttng-ctl%2Flttng-ctl.c;fp=src%2Flib%2Flttng-ctl%2Flttng-ctl.c;h=7efc6bd2ebea7ef007c14a164b43cee48ecc3519;hp=7debaed6b813d412404db52c277622cbd1be7154;hb=b0a79813263e65e177c2cca7a352c8b364a02b22;hpb=46e9a5fb8c7241e9515a53b25bd5c9c4f463a86d diff --git a/src/lib/lttng-ctl/lttng-ctl.c b/src/lib/lttng-ctl/lttng-ctl.c index 7debaed6b..7efc6bd2e 100644 --- a/src/lib/lttng-ctl/lttng-ctl.c +++ b/src/lib/lttng-ctl/lttng-ctl.c @@ -3344,18 +3344,18 @@ int lttng_unregister_trigger(const struct lttng_trigger *trigger) goto end; } - /* - * This is needed to populate the trigger object size for the command - * header and number of fds sent. - */ - message_lsm = (struct lttcomm_session_msg *) message.buffer.data; - ret = lttng_trigger_serialize(copy, &message); if (ret < 0) { ret = -LTTNG_ERR_UNK; goto end; } + /* + * This is needed to populate the trigger object size for the command + * header and number of fds sent. + */ + message_lsm = (struct lttcomm_session_msg *) message.buffer.data; + message_lsm->u.trigger.length = (uint32_t) message.buffer.size - sizeof(lsm); {