mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 00:49:28 -05:00
corrected possible invalid write
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3640 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
6f5c556539
commit
3b2ab05993
@ -404,7 +404,9 @@ int bdNodeManager::checkStatus()
|
|||||||
std::cerr << std::endl;
|
std::cerr << std::endl;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
else if (pit->second.mStatus == it->second.mStatus)
|
else
|
||||||
|
{
|
||||||
|
if (pit->second.mStatus == it->second.mStatus)
|
||||||
{
|
{
|
||||||
/* status is unchanged */
|
/* status is unchanged */
|
||||||
doPing = false;
|
doPing = false;
|
||||||
@ -441,6 +443,7 @@ int bdNodeManager::checkStatus()
|
|||||||
pit->second.mDhtAddr.sin_port = 0;
|
pit->second.mDhtAddr.sin_port = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* add successful queries to ping list */
|
/* add successful queries to ping list */
|
||||||
if (doPing)
|
if (doPing)
|
||||||
|
Loading…
Reference in New Issue
Block a user