Fixed possible null pointer access in p3BitDht::addInternalPeer_locked.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8467 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2015-06-15 17:51:07 +00:00
parent d2ddab0ab9
commit 6e61a3321a

View File

@ -432,7 +432,10 @@ DhtPeerDetails *p3BitDht::addInternalPeer_locked(const RsPeerId& pid, uint32_t t
dpd = findInternalDhtPeer_locked(&id, RSDHT_PEERTYPE_ANY);
if(dpd == NULL)
{
std::cerr << "(EE) inconsistency error in p3BitDht::addInternalPeer_locked() Cannot find peer that was just added." << std::endl;
return;
}
}
/* what do we need to reset? */