fixed serialisation bug likely causing the loss of peers.cfg (Thx G10H4ck for finding this)

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8039 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2015-03-16 21:27:35 +00:00
parent 29d3c8bcdd
commit c4b1b3dfbc

View File

@ -832,7 +832,7 @@ bool SetTlvIpAddrPortV6(void *data, uint32_t size, uint32_t *offset,
if (!data) if (!data)
return false; return false;
uint32_t tlvsize = GetTlvIpAddrPortV4Size(); uint32_t tlvsize = GetTlvIpAddrPortV6Size();
uint32_t tlvend = *offset + tlvsize; /* where the data will extend to */ uint32_t tlvend = *offset + tlvsize; /* where the data will extend to */
if (size < tlvend) if (size < tlvend)