mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fixed crash in "pqiSSLstore::readPkt" when "rsSerialiser->deserialise" returns NULL.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4605 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
2fac47293e
commit
526f71bebd
@ -602,14 +602,14 @@ int pqiSSLstore::readPkt(RsItem **item_out)
|
|||||||
RsItem *item = rsSerialiser->deserialise(block, &readbytes);
|
RsItem *item = rsSerialiser->deserialise(block, &readbytes);
|
||||||
free(block);
|
free(block);
|
||||||
|
|
||||||
#ifdef PQISTORE_DEBUG
|
|
||||||
if (item == NULL)
|
if (item == NULL)
|
||||||
{
|
{
|
||||||
pqioutput(PQL_ALERT, pqistorezone,
|
#ifdef PQISTORE_DEBUG
|
||||||
|
pqioutput(PQL_ALERT, pqistorezone,
|
||||||
"pqistore::readPkt() Failed to create Item from store!");
|
"pqistore::readPkt() Failed to create Item from store!");
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
item->PeerId(mSrcId);
|
item->PeerId(mSrcId);
|
||||||
*item_out = item;
|
*item_out = item;
|
||||||
|
Loading…
Reference in New Issue
Block a user