mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-26 09:41:29 -05:00
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:
parent
6e4045124c
commit
eca970bb0c
@ -509,6 +509,11 @@ bool DistantChatService::handleEncryptedData(const uint8_t *data_bytes,uint32_t
|
|||||||
|
|
||||||
void DistantChatService::handleRecvDHPublicKey(RsChatDHPublicKeyItem *item)
|
void DistantChatService::handleRecvDHPublicKey(RsChatDHPublicKeyItem *item)
|
||||||
{
|
{
|
||||||
|
if (!item)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef DEBUG_DISTANT_CHAT
|
#ifdef DEBUG_DISTANT_CHAT
|
||||||
std::cerr << "DistantChatService: Received DH public key." << std::endl;
|
std::cerr << "DistantChatService: Received DH public key." << std::endl;
|
||||||
item->print(std::cerr, 0) ;
|
item->print(std::cerr, 0) ;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user