Skip to content

Commit

Permalink
skip unknown address
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Mar 14, 2022
1 parent 908bdc7 commit b3c2e86
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libi2pd/RouterInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit b3c2e86

Please sign in to comment.