mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
suppressed bug in RsTlvBinData that could return true even when the serialisation fails
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1394 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
f7475887dc
commit
9de1c5e6e6
@ -145,8 +145,10 @@ bool RsTlvBinaryData::SetTlv(void *data, uint32_t size, uint32_t *offset) /*
|
|||||||
{
|
{
|
||||||
memcpy(&(((uint8_t *) data)[*offset]), bin_data, bin_len);
|
memcpy(&(((uint8_t *) data)[*offset]), bin_data, bin_len);
|
||||||
*offset += bin_len;
|
*offset += bin_len;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
return ok;
|
else
|
||||||
|
return false ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user