We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d35ae6 commit b6c63bfCopy full SHA for b6c63bf
1 file changed
src/cpp/rtps/builtin/discovery/participant/PDPServer.cpp
@@ -391,8 +391,13 @@ bool PDPServer::create_ds_pdp_reliable_endpoints(
391
{
392
endpoints.reader.reader_ = dynamic_cast<fastdds::rtps::StatefulReader*>(reader);
393
394
- // Enable unknown clients to reach this reader
395
- BaseReader::downcast(endpoints.reader.reader_)->allow_unknown_writers();
+#if HAVE_SECURITY
+ if (!secure)
396
+#endif // HAVE_SECURITY
397
+ {
398
+ // Enable unknown clients to reach this reader
399
+ BaseReader::downcast(endpoints.reader.reader_)->allow_unknown_writers();
400
+ }
401
402
#if HAVE_SECURITY
403
mp_RTPSParticipant->set_endpoint_rtps_protection_supports(reader, false);
0 commit comments