mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-12 02:55:18 -04:00
- corrected 1 bug in serialisation of CRC32Maps for peer transfer
- corrected 1 bug (missing hashing thread deletion on failure) git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3321 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
38be555332
commit
1069ed0c58
3 changed files with 30 additions and 18 deletions
|
@ -527,16 +527,16 @@ bool RsFileItemSerialiser::serialiseCRC32Map(RsFileCRC32Map *item, void *dat
|
|||
|
||||
/* add mandatory parts first */
|
||||
ok &= SetTlvString(data, tlvsize, &offset, TLV_TYPE_STR_VALUE, item->hash);
|
||||
ok &= setRawUInt32(data, tlvsize, &offset, item->crc_map._crcs.size());
|
||||
|
||||
for(uint32_t i=0;i<item->crc_map._crcs.size();++i)
|
||||
ok &= setRawUInt32(data, tlvsize, &offset, item->crc_map._crcs[i]);
|
||||
|
||||
ok &= setRawUInt32(data, tlvsize, &offset, item->crc_map._ccmap._map.size());
|
||||
|
||||
for(uint32_t i=0;i<item->crc_map._ccmap._map.size();++i)
|
||||
ok &= setRawUInt32(data, tlvsize, &offset, item->crc_map._ccmap._map[i]);
|
||||
|
||||
ok &= setRawUInt32(data, tlvsize, &offset, item->crc_map._crcs.size());
|
||||
|
||||
for(uint32_t i=0;i<item->crc_map._crcs.size();++i)
|
||||
ok &= setRawUInt32(data, tlvsize, &offset, item->crc_map._crcs[i]);
|
||||
|
||||
if (offset != tlvsize)
|
||||
{
|
||||
ok = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue