Skip to content

Commit

Permalink
Fixing WriterProxyData clear() method (#2814)
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
(cherry picked from commit 6b5e9c3)

Co-authored-by: MiguelBarro <45819833+MiguelBarro@users.noreply.github.com>
  • Loading branch information
mergify[bot] and MiguelBarro authored Jul 8, 2022
1 parent a0f832a commit df619cd
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 df619cd

Please sign in to comment.