mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
attempt at fixing crash that shoult not happen in rsgxsutil.cc
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8158 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
9ebe33c9de
commit
3641a6c87c
@ -211,7 +211,12 @@ bool RsGxsIntegrityCheck::check()
|
||||
pHash.addData(msg->msg.bin_data, msg->msg.bin_len);
|
||||
pHash.Complete(currHash);
|
||||
|
||||
if(currHash != msg->metaData->mHash) msgsToDel[msg->grpId].push_back(msg->msgId);
|
||||
if(msg->metaData == NULL || currHash != msg->metaData->mHash)
|
||||
{
|
||||
std::cerr << "(EE) deleting message data with wrong hash or null meta data. meta=" << (void*)msg->metaData << std::endl;
|
||||
msgsToDel[msg->grpId].push_back(msg->msgId);
|
||||
}
|
||||
|
||||
delete msg;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user