mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 23:49:35 -05:00
fixed serialisation bug preventing the correct save of grouter matrix in some cases
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7715 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
f692116207
commit
959c0ebf5b
@ -553,7 +553,7 @@ bool RsGRouterRoutingInfoItem::serialise(void *data,uint32_t& size) const
|
||||
ok &= setRawUInt32(data, tlvsize, &offset, tried_friends.size()) ;
|
||||
|
||||
for(std::list<FriendTrialRecord>::const_iterator it(tried_friends.begin());it!=tried_friends.end();++it)
|
||||
ok &= (*it).serialise(data,offset,size - offset) ;
|
||||
ok &= (*it).serialise(data,offset,size) ;
|
||||
|
||||
uint32_t ns = size - offset ;
|
||||
ok &= data_item->serialise( &((uint8_t*)data)[offset], ns) ;
|
||||
|
Loading…
Reference in New Issue
Block a user