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 a0f832a commit 64beac3
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 @@ -999,6 +999,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 64beac3

Please sign in to comment.