mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
skip unknown address
This commit is contained in:
parent
908bdc7624
commit
b3c2e86436
@ -234,6 +234,12 @@ namespace data
|
||||
uint16_t size, r = 0;
|
||||
s.read ((char *)&size, sizeof (size)); if (!s) return;
|
||||
size = be16toh (size);
|
||||
if (address->transportStyle == eTransportUnknown)
|
||||
{
|
||||
// skip unknown address
|
||||
s.seekg (size, std::ios_base::cur);
|
||||
if (s) continue; else return;
|
||||
}
|
||||
while (r < size)
|
||||
{
|
||||
char key[255], value[255];
|
||||
|
Loading…
Reference in New Issue
Block a user