Skip to content

Commit

Permalink
Refs #21696: Fix remote disposal guid pdpclient issue
Browse files Browse the repository at this point in the history
Signed-off-by: Mario Dominguez <[email protected]>
  • Loading branch information
Mario-DL committed Oct 16, 2024
1 parent 220680f commit ea439a5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/cpp/rtps/builtin/discovery/participant/PDPClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -769,9 +769,17 @@ void PDPClient::announceParticipantState(
// if we are matched to a server report demise
if (svr.is_connected)
{
GuidPrefix_t srv_guid_prefix = svr.guidPrefix;

if (getRTPSParticipant()->is_secure())
{
// Need the mangled guid prefix in this case
srv_guid_prefix = get_participant_proxy_data(svr.guidPrefix)->m_guid.guidPrefix;
}

//locators.push_back(svr.metatrafficMulticastLocatorList);
locators.push_back(svr.metatrafficUnicastLocatorList);
remote_readers.emplace_back(svr.guidPrefix,
remote_readers.emplace_back(srv_guid_prefix,
endpoints->reader.reader_->getGuid().entityId);
}
}
Expand Down

0 comments on commit ea439a5

Please sign in to comment.