mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-16 18:39:46 -04:00
fixed potential crash when an entry in mRemoteDirectories is NULL
This commit is contained in:
parent
1125dfe6d1
commit
3beaa974b0
1 changed files with 9 additions and 8 deletions
|
@ -207,6 +207,7 @@ int p3FileDatabase::tick()
|
|||
mServCtrl->getPeersConnected(getServiceInfo().mServiceType, online_peers) ;
|
||||
|
||||
for(uint32_t i=0;i<mRemoteDirectories.size();++i)
|
||||
if(mRemoteDirectories[i] != NULL)
|
||||
{
|
||||
if(online_peers.find(mRemoteDirectories[i]->peerId()) != online_peers.end())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue