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
This commit is contained in:
joss17 2009-12-15 17:50:18 +00:00
parent 83db3bebb9
commit 8628be3b35

View File

@ -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);
}