mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-19 03:41:31 -05:00
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:
parent
9e72fb31e6
commit
22f07fcc66
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user