switched GRouter to new serialization

This commit is contained in:
csoler 2017-04-25 21:21:46 +02:00
parent 0d7df568b4
commit 77e809ea4b
7 changed files with 343 additions and 195 deletions

View file

@ -524,7 +524,7 @@ int pqiSSLstore::readPkt(RsItem **item_out)
int extralen = getRsItemSize(block) - blen;
int totallen = extralen+blen;
if(totallen > 1024*1024)
if(totallen > 1024*1024 || totallen<blen)
{
free(block);
std::cerr << "pqiSSLstore: ERROR: trying to realloc memory for packet of length" << totallen << ", that exceeds the limit of 1MB" << std::endl ;