mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-15 10:54:22 -05:00
add memory socket address initialisation
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1911 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
10cd455519
commit
5c436e2dde
@ -308,6 +308,7 @@ RsDiscOwnItem *RsDiscSerialiser::deserialiseOwnItem(void *data, uint32_t *pktsiz
|
|||||||
while (offset < rssize && count < (int)listSize) {
|
while (offset < rssize && count < (int)listSize) {
|
||||||
count++;
|
count++;
|
||||||
IpAddressTimed ipTimed;
|
IpAddressTimed ipTimed;
|
||||||
|
sockaddr_clear(&ipTimed.ipAddr);
|
||||||
ok &= GetTlvIpAddrPortV4(data, rssize, &offset, TLV_TYPE_IPV4_REMOTE, &ipTimed.ipAddr);
|
ok &= GetTlvIpAddrPortV4(data, rssize, &offset, TLV_TYPE_IPV4_REMOTE, &ipTimed.ipAddr);
|
||||||
uint64_t time;
|
uint64_t time;
|
||||||
ok &= getRawUInt64(data, rssize, &offset, &time);
|
ok &= getRawUInt64(data, rssize, &offset, &time);
|
||||||
@ -529,6 +530,7 @@ RsDiscReply *RsDiscSerialiser::deserialiseReply(void *data, uint32_t *pktsize)
|
|||||||
while (offset < rssize && count < (int)listSize) {
|
while (offset < rssize && count < (int)listSize) {
|
||||||
count++;
|
count++;
|
||||||
IpAddressTimed ipTimed;
|
IpAddressTimed ipTimed;
|
||||||
|
sockaddr_clear(&ipTimed.ipAddr);
|
||||||
ok &= GetTlvIpAddrPortV4(data, rssize, &offset, TLV_TYPE_IPV4_REMOTE, &ipTimed.ipAddr);
|
ok &= GetTlvIpAddrPortV4(data, rssize, &offset, TLV_TYPE_IPV4_REMOTE, &ipTimed.ipAddr);
|
||||||
uint64_t time;
|
uint64_t time;
|
||||||
ok &= getRawUInt64(data, rssize, &offset, &time);
|
ok &= getRawUInt64(data, rssize, &offset, &time);
|
||||||
|
Loading…
Reference in New Issue
Block a user