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:
csoler 2010-10-07 19:25:40 +00:00
parent 6f5c556539
commit 3b2ab05993

View File

@ -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)