mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-06 21:58:57 -04:00
fixed potential passing of deleted item to sendChatItem when a ChatLobbyItem is too big (would probably cause a crash. Found using coverity)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8428 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
1d165bb43d
commit
c077091693
1 changed files with 1 additions and 0 deletions
|
@ -388,6 +388,7 @@ void DistributedChatService::checkSizeAndSendLobbyMessage(RsChatItem *msg)
|
||||||
{
|
{
|
||||||
std::cerr << "(EE) Chat item exceeds maximum serial size. It will be dropped." << std::endl;
|
std::cerr << "(EE) Chat item exceeds maximum serial size. It will be dropped." << std::endl;
|
||||||
delete msg ;
|
delete msg ;
|
||||||
|
return ;
|
||||||
}
|
}
|
||||||
sendChatItem(msg) ;
|
sendChatItem(msg) ;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue