From b3c2e86436ce7c7e03fa5d2ca8e8bc2d6d6f8d1c Mon Sep 17 00:00:00 2001 From: orignal Date: Mon, 14 Mar 2022 15:54:55 -0400 Subject: [PATCH] skip unknown address --- libi2pd/RouterInfo.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libi2pd/RouterInfo.cpp b/libi2pd/RouterInfo.cpp index 1f3fd985..4fa52690 100644 --- a/libi2pd/RouterInfo.cpp +++ b/libi2pd/RouterInfo.cpp @@ -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];