put correct (i.e. non conservative) size for RsDiscReply packets

git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@3101 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2010-06-10 12:53:30 +00:00
parent 9e72fb31e6
commit 22f07fcc66

View File

@ -346,7 +346,7 @@ bool RsDiscSerialiser::serialiseReply(RsDiscReply *item, void *data, uint32_
for (pitemIt = item->rsPeerList.begin(); pitemIt!=(item->rsPeerList.end()) && ok; ++pitemIt)
{
uint32_t size = ~(uint32_t)0; // we must be conservative otherwise the serialiser returns false !!
uint32_t size = *pktsize - offset ;//~(uint32_t)0; // we must be conservative otherwise the serialiser returns false !!
ok &= rss.serialise(&(*pitemIt), (void *) (((char *) data) + offset), &size);