mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-07 06:02:41 -04:00
Remove some error detection in deserial for dynDNS backward compatibility
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2757 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
d70e7a3b71
commit
a1ece0b837
1 changed files with 4 additions and 2 deletions
|
@ -906,7 +906,8 @@ RsPeerNetItem *RsPeerConfigSerialiser::deserialiseNet(void *data, uint32_t *size
|
||||||
ok &= getRawUInt32(data, rssize, &offset, &(item->lastContact)); /* Mandatory */
|
ok &= getRawUInt32(data, rssize, &offset, &(item->lastContact)); /* Mandatory */
|
||||||
ok &= GetTlvIpAddrPortV4(data, rssize, &offset, TLV_TYPE_IPV4_LOCAL, &(item->currentlocaladdr));
|
ok &= GetTlvIpAddrPortV4(data, rssize, &offset, TLV_TYPE_IPV4_LOCAL, &(item->currentlocaladdr));
|
||||||
ok &= GetTlvIpAddrPortV4(data, rssize, &offset, TLV_TYPE_IPV4_REMOTE, &(item->currentremoteaddr));
|
ok &= GetTlvIpAddrPortV4(data, rssize, &offset, TLV_TYPE_IPV4_REMOTE, &(item->currentremoteaddr));
|
||||||
ok &= GetTlvString(data, rssize, &offset, TLV_TYPE_STR_DYNDNS, item->dyndns);
|
//ok &= GetTlvString(data, rssize, &offset, TLV_TYPE_STR_DYNDNS, item->dyndns);
|
||||||
|
GetTlvString(data, rssize, &offset, TLV_TYPE_STR_DYNDNS, item->dyndns); //use this line for backward compatibility
|
||||||
|
|
||||||
//get the ip adress list
|
//get the ip adress list
|
||||||
std::list<IpAddressTimed> ipTimedList;
|
std::list<IpAddressTimed> ipTimedList;
|
||||||
|
@ -923,7 +924,8 @@ RsPeerNetItem *RsPeerConfigSerialiser::deserialiseNet(void *data, uint32_t *size
|
||||||
}
|
}
|
||||||
item->ipAddressList = ipTimedList;
|
item->ipAddressList = ipTimedList;
|
||||||
|
|
||||||
if (offset != rssize)
|
//if (offset != rssize)
|
||||||
|
if (false) //use this line for backward compatibility
|
||||||
{
|
{
|
||||||
|
|
||||||
/* error */
|
/* error */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue