From 526f71bebde1c722252c8ac07d95a374ed48ab19 Mon Sep 17 00:00:00 2001 From: thunder2 Date: Wed, 14 Sep 2011 11:05:17 +0000 Subject: [PATCH] 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 --- libretroshare/src/pqi/pqistore.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libretroshare/src/pqi/pqistore.cc b/libretroshare/src/pqi/pqistore.cc index 5b079b879..bed3d33a5 100644 --- a/libretroshare/src/pqi/pqistore.cc +++ b/libretroshare/src/pqi/pqistore.cc @@ -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;