Added check of function parameter to DistantChatService::handleRecvDHPublicKey.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8589 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2015-07-12 00:45:48 +00:00
parent 6e4045124c
commit eca970bb0c

View File

@ -509,6 +509,11 @@ bool DistantChatService::handleEncryptedData(const uint8_t *data_bytes,uint32_t
void DistantChatService::handleRecvDHPublicKey(RsChatDHPublicKeyItem *item)
{
if (!item)
{
return;
}
#ifdef DEBUG_DISTANT_CHAT
std::cerr << "DistantChatService: Received DH public key." << std::endl;
item->print(std::cerr, 0) ;