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:
thunder2 2011-09-14 11:05:17 +00:00
parent 2fac47293e
commit 526f71bebd

View File

@ -602,14 +602,14 @@ int pqiSSLstore::readPkt(RsItem **item_out)
RsItem *item = rsSerialiser->deserialise(block, &readbytes);
free(block);
#ifdef PQISTORE_DEBUG
if (item == NULL)
{
pqioutput(PQL_ALERT, pqistorezone,
#ifdef PQISTORE_DEBUG
pqioutput(PQL_ALERT, pqistorezone,
"pqistore::readPkt() Failed to create Item from store!");
#endif
return 0;
}
#endif
item->PeerId(mSrcId);
*item_out = item;