From 5c436e2dde6798da098dad45945df060f4312913 Mon Sep 17 00:00:00 2001 From: joss17 Date: Fri, 18 Dec 2009 21:45:28 +0000 Subject: [PATCH] add memory socket address initialisation git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1911 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/serialiser/rsdiscitems.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libretroshare/src/serialiser/rsdiscitems.cc b/libretroshare/src/serialiser/rsdiscitems.cc index 4916fc437..71e353fe8 100644 --- a/libretroshare/src/serialiser/rsdiscitems.cc +++ b/libretroshare/src/serialiser/rsdiscitems.cc @@ -308,6 +308,7 @@ RsDiscOwnItem *RsDiscSerialiser::deserialiseOwnItem(void *data, uint32_t *pktsiz while (offset < rssize && count < (int)listSize) { count++; IpAddressTimed ipTimed; + sockaddr_clear(&ipTimed.ipAddr); ok &= GetTlvIpAddrPortV4(data, rssize, &offset, TLV_TYPE_IPV4_REMOTE, &ipTimed.ipAddr); uint64_t 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) { count++; IpAddressTimed ipTimed; + sockaddr_clear(&ipTimed.ipAddr); ok &= GetTlvIpAddrPortV4(data, rssize, &offset, TLV_TYPE_IPV4_REMOTE, &ipTimed.ipAddr); uint64_t time; ok &= getRawUInt64(data, rssize, &offset, &time);