Skip to content

Commit

Permalink
Add missing change: serialize writer GUID before locators
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Lopez Fernandez <[email protected]>
  • Loading branch information
juanlofer-eprosima committed Mar 14, 2024
1 parent 44ac760 commit 38553e9
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/cpp/rtps/builtin/data/WriterProxyData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,14 @@ bool WriterProxyData::writeToCDRMessage(
}
}

{
ParameterGuid_t p(fastdds::dds::PID_ENDPOINT_GUID, 16, m_guid);
if (!fastdds::dds::ParameterSerializer<ParameterGuid_t>::add_to_cdr_message(p, msg))
{
return false;
}
}

{
ParameterNetworkConfigSet_t p(fastdds::dds::PID_NETWORK_CONFIGURATION_SET, PARAMETER_NETWORKCONFIGSET_LENGTH);
p.netconfigSet = m_networkConfiguration;
Expand Down Expand Up @@ -392,13 +400,6 @@ bool WriterProxyData::writeToCDRMessage(
return false;
}
}
{
ParameterGuid_t p(fastdds::dds::PID_ENDPOINT_GUID, 16, m_guid);
if (!fastdds::dds::ParameterSerializer<ParameterGuid_t>::add_to_cdr_message(p, msg))
{
return false;
}
}
{
ParameterPort_t p(fastdds::dds::PID_TYPE_MAX_SIZE_SERIALIZED, 4, m_typeMaxSerialized);
if (!fastdds::dds::ParameterSerializer<ParameterPort_t>::add_to_cdr_message(p, msg))
Expand Down

0 comments on commit 38553e9

Please sign in to comment.