From: Jonathan Rajotte Date: Wed, 8 Jul 2020 02:51:27 +0000 (-0400) Subject: Fix: action: invalid header offset used when serializing snapshot action X-Git-Tag: v2.13.0-rc1~438 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=27cd04c68dcf9c9da499c359579243e933df03d9;p=lttng-tools.git Fix: action: invalid header offset used when serializing snapshot action Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau Change-Id: I77f5fab214f6721773147968ea3b85dddfea8d62 --- diff --git a/src/common/actions/snapshot-session.c b/src/common/actions/snapshot-session.c index ccf54dc77..757683865 100644 --- a/src/common/actions/snapshot-session.c +++ b/src/common/actions/snapshot-session.c @@ -141,7 +141,6 @@ static int lttng_action_snapshot_session_serialize( assert(payload); size_before_comm = payload->buffer.size; - size_before_comm = size_before_comm + sizeof(comm); action_snapshot_session = action_snapshot_session_from_action(action); comm.session_name_len =