Skip to content

Commit

Permalink
Refs #7478. Not allocating memory for crypto message when participant…
Browse files Browse the repository at this point in the history
… is not secure
  • Loading branch information
MiguelCompany committed Jan 31, 2020
1 parent 2b4ddfe commit b400157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpp/rtps/messages/MessageReceiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ MessageReceiver::MessageReceiver(
, have_timestamp_(false)
, timestamp_(c_TimeInvalid)
#if HAVE_SECURITY
, crypto_msg_(rec_buffer_size)
, crypto_msg_(participant->is_secure() ? rec_buffer_size : 0)
#endif
{
(void)rec_buffer_size;
Expand Down

0 comments on commit b400157

Please sign in to comment.