Skip to content

Commit

Permalink
Fix compilation warning
Browse files Browse the repository at this point in the history
Signed-off-by: elianalf <[email protected]>
  • Loading branch information
elianalf committed Jun 14, 2024
1 parent dbab57d commit f92ee15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpp/rtps/messages/RTPSMessageGroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -356,13 +356,13 @@ void RTPSMessageGroup::send()
{
if (endpoint_ && sender_)
{
CDRMessage_t* msgToSend = header_msg_;

if (header_msg_->length > RTPSMESSAGE_HEADER_SIZE)
{
std::lock_guard<RTPSMessageSenderInterface> lock(*sender_);

#if HAVE_SECURITY
CDRMessage_t* msgToSend = header_msg_;
// TODO(Ricardo) Control message size if it will be encrypted.
if (participant_->security_attributes().is_rtps_protected && endpoint_->supports_rtps_protection())
{
Expand Down

0 comments on commit f92ee15

Please sign in to comment.