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:
csoler 2009-07-20 22:29:05 +00:00
parent f7475887dc
commit 9de1c5e6e6

View File

@ -145,8 +145,10 @@ bool RsTlvBinaryData::SetTlv(void *data, uint32_t size, uint32_t *offset) /*
{
memcpy(&(((uint8_t *) data)[*offset]), bin_data, bin_len);
*offset += bin_len;
return true;
}
return ok;
else
return false ;
}