mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-26 01:31:30 -05:00
fixed potential crash when an entry in mRemoteDirectories is NULL
This commit is contained in:
parent
1125dfe6d1
commit
3beaa974b0
@ -207,6 +207,7 @@ int p3FileDatabase::tick()
|
|||||||
mServCtrl->getPeersConnected(getServiceInfo().mServiceType, online_peers) ;
|
mServCtrl->getPeersConnected(getServiceInfo().mServiceType, online_peers) ;
|
||||||
|
|
||||||
for(uint32_t i=0;i<mRemoteDirectories.size();++i)
|
for(uint32_t i=0;i<mRemoteDirectories.size();++i)
|
||||||
|
if(mRemoteDirectories[i] != NULL)
|
||||||
{
|
{
|
||||||
if(online_peers.find(mRemoteDirectories[i]->peerId()) != online_peers.end())
|
if(online_peers.find(mRemoteDirectories[i]->peerId()) != online_peers.end())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user