From fbb961b43c8ac9e31e50542a0f60f92b0e513df5 Mon Sep 17 00:00:00 2001 From: orignal Date: Thu, 7 Jul 2022 13:23:51 -0400 Subject: [PATCH] extract correct endpoint from peer test msg 2 --- libi2pd/SSU2Session.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libi2pd/SSU2Session.cpp b/libi2pd/SSU2Session.cpp index a7dbaace..a47677fe 100644 --- a/libi2pd/SSU2Session.cpp +++ b/libi2pd/SSU2Session.cpp @@ -1596,7 +1596,7 @@ namespace transport { boost::asio::ip::udp::endpoint ep; std::shared_ptr addr; - if (ExtractEndpoint (buf + offset + 9, len - offset - 9, ep)) + if (ExtractEndpoint (buf + offset + 10, asz, ep)) addr = r->GetSSU2Address (ep.address ().is_v4 ()); if (addr && m_Server.IsSupported (ep.address ())) {