mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 00:19:25 -05:00
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:
parent
29d3c8bcdd
commit
c4b1b3dfbc
@ -832,7 +832,7 @@ bool SetTlvIpAddrPortV6(void *data, uint32_t size, uint32_t *offset,
|
||||
if (!data)
|
||||
return false;
|
||||
|
||||
uint32_t tlvsize = GetTlvIpAddrPortV4Size();
|
||||
uint32_t tlvsize = GetTlvIpAddrPortV6Size();
|
||||
uint32_t tlvend = *offset + tlvsize; /* where the data will extend to */
|
||||
|
||||
if (size < tlvend)
|
||||
|
Loading…
Reference in New Issue
Block a user