From 8628be3b353a1f0b667fc52cd6b4e3dfd01a024c Mon Sep 17 00:00:00 2001 From: joss17 Date: Tue, 15 Dec 2009 17:50:18 +0000 Subject: [PATCH] add a break in case ipAddressList don't deserialize correctly git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1891 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/serialiser/rsconfigitems.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libretroshare/src/serialiser/rsconfigitems.cc b/libretroshare/src/serialiser/rsconfigitems.cc index c3bf0c7ea..47b949c63 100644 --- a/libretroshare/src/serialiser/rsconfigitems.cc +++ b/libretroshare/src/serialiser/rsconfigitems.cc @@ -890,6 +890,9 @@ RsPeerNetItem *RsPeerConfigSerialiser::deserialiseNet(void *data, uint32_t *size ok &= GetTlvIpAddrPortV4(data, rssize, &offset, TLV_TYPE_IPV4_REMOTE, &ipTimed.ipAddr); uint64_t time; ok &= getRawUInt64(data, rssize, &offset, &time); + if (!ok) { + break; + } ipTimed.seenTime = time; ipTimedList.push_back(ipTimed); }