Skip to content

Commit

Permalink
Refs 7530. Protect add_participant_proxy_data on initPDP
Browse files Browse the repository at this point in the history
This is a port of #996
  • Loading branch information
IkerLuengo committed Feb 28, 2020
1 parent 012063c commit 9044487
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cpp/rtps/builtin/discovery/participant/PDP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,11 @@ bool PDP::initPDP(
}
//UPDATE METATRAFFIC.
mp_builtin->updateMetatrafficLocators(this->mp_PDPReader->getAttributes().unicastLocatorList);

mp_mutex->lock();
ParticipantProxyData* pdata = add_participant_proxy_data(part->getGuid(), true);
mp_mutex->unlock();

if (pdata == nullptr)
{
return false;
Expand Down

0 comments on commit 9044487

Please sign in to comment.