mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
d2ddab0ab9
commit
6e61a3321a
@ -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? */
|
||||
|
Loading…
Reference in New Issue
Block a user