Skip to content

Commit

Permalink
Refs #20629: Fix security DS
Browse files Browse the repository at this point in the history
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
  • Loading branch information
cferreiragonz committed Jun 24, 2024
1 parent 0d35ae6 commit b6c63bf
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/cpp/rtps/builtin/discovery/participant/PDPServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,13 @@ bool PDPServer::create_ds_pdp_reliable_endpoints(
{
endpoints.reader.reader_ = dynamic_cast<fastdds::rtps::StatefulReader*>(reader);

// Enable unknown clients to reach this reader
BaseReader::downcast(endpoints.reader.reader_)->allow_unknown_writers();
#if HAVE_SECURITY
if (!secure)
#endif // HAVE_SECURITY
{
// Enable unknown clients to reach this reader
BaseReader::downcast(endpoints.reader.reader_)->allow_unknown_writers();
}

#if HAVE_SECURITY
mp_RTPSParticipant->set_endpoint_rtps_protection_supports(reader, false);
Expand Down

0 comments on commit b6c63bf

Please sign in to comment.