From 9de1c5e6e622e175dddf8d618ed42d6d27c9cffa Mon Sep 17 00:00:00 2001 From: csoler Date: Mon, 20 Jul 2009 22:29:05 +0000 Subject: [PATCH] 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 --- libretroshare/src/serialiser/rstlvtypes.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/serialiser/rstlvtypes.cc b/libretroshare/src/serialiser/rstlvtypes.cc index 98f9729e3..de301e272 100644 --- a/libretroshare/src/serialiser/rstlvtypes.cc +++ b/libretroshare/src/serialiser/rstlvtypes.cc @@ -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 ; }