From 452da43bbee0bbf0cb14489bdacce7a08c1936e9 Mon Sep 17 00:00:00 2001 From: orignal Date: Sun, 18 Oct 2026 21:21:14 -0400 Subject: [PATCH] don't handle RelayRequest came from non-established session --- libi2pd/SSU2Session.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libi2pd/SSU2Session.cpp b/libi2pd/SSU2Session.cpp index 5b4dee48..d0176f82 100644 --- a/libi2pd/SSU2Session.cpp +++ b/libi2pd/SSU2Session.cpp @@ -2271,6 +2271,11 @@ namespace transport { // we are Bob if (len < 9) return; + if (!IsEstablished ()) + { + LogPrint (eLogWarning, "SSU2: RelayRequest came from non-established session. Dropped"); + return; + } auto mts = i2p::util::GetMillisecondsSinceEpoch (); uint32_t nonce = bufbe32toh (buf + 1); // nonce uint32_t relayTag = bufbe32toh (buf + 5); // relay tag