mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-28 16:17:28 -04:00
Added more debug to serialisers.
* print out messages when serialisation fails. * removed BUG in TlvGetString() which allows a zero length TLV git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4496 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
1ee26e3ef2
commit
3d71e6338e
4 changed files with 194 additions and 73 deletions
|
@ -409,14 +409,6 @@ bool GetTlvString(void *data, uint32_t size, uint32_t *offset,
|
|||
if (!data)
|
||||
return false;
|
||||
|
||||
// Check if we have a null string (this happens with certs)
|
||||
//
|
||||
if (size == *offset)
|
||||
{
|
||||
in = "" ;
|
||||
return true ;
|
||||
}
|
||||
|
||||
if (size < *offset)
|
||||
{
|
||||
#ifdef TLV_BASE_DEBUG
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue