diff --git a/libretroshare/src/pqi/pqistore.cc b/libretroshare/src/pqi/pqistore.cc index 35353e381..ddb3ce14a 100644 --- a/libretroshare/src/pqi/pqistore.cc +++ b/libretroshare/src/pqi/pqistore.cc @@ -418,6 +418,9 @@ bool pqiSSLstore::getEncryptedItems(std::list& rsItemList) { if (NULL != (item = GetItem())) rsItemList.push_back(item); + else + break ; + } while (enc_bio->isactive() && enc_bio->moretoread()); return true;