Skip to content

Commit

Permalink
Fixing WriterProxyData clear() method (#2810)
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Barro <[email protected]>
(cherry picked from commit 6b5e9c3)
  • Loading branch information
MiguelBarro authored and mergify[bot] committed Jul 6, 2022
1 parent 2edded2 commit b5868a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cpp/rtps/builtin/data/WriterProxyData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,10 @@ bool WriterProxyData::readFromCDRMessage(

void WriterProxyData::clear()
{
#if HAVE_SECURITY
security_attributes_ = 0UL;
plugin_security_attributes_ = 0UL;
#endif // if HAVE_SECURITY
m_guid = c_Guid_Unknown;
remote_locators_.unicast.clear();
remote_locators_.multicast.clear();
Expand Down

0 comments on commit b5868a9

Please sign in to comment.