Skip to content

Commit

Permalink
Refs #21213. Setting vendor_id on received CacheChange_t
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo González Moreno <[email protected]>
  • Loading branch information
richiware committed Jun 27, 2024
1 parent ccacad0 commit f232c19
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cpp/rtps/messages/MessageReceiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,9 @@ bool MessageReceiver::proc_Submsg_Data(
return false;
}

// Get the vendor id
ch.vendor_id = source_vendor_id_;

//Jump ahead if more parameters are before inlineQos (not in this version, maybe if further minor versions.)
if (octetsToInlineQos > RTPSMESSAGE_OCTETSTOINLINEQOS_DATASUBMSG)
{
Expand Down Expand Up @@ -987,6 +990,9 @@ bool MessageReceiver::proc_Submsg_DataFrag(
return false;
}

// Get the vendor id
ch.vendor_id = source_vendor_id_;

// READ FRAGMENT NUMBER
uint32_t fragmentStartingNum;
valid &= CDRMessage::readUInt32(msg, &fragmentStartingNum);
Expand Down

0 comments on commit f232c19

Please sign in to comment.