From ff5fa1d137863b92636fa9e8c730ca3f3dc2e178 Mon Sep 17 00:00:00 2001 From: orignal Date: Sat, 30 Jul 2022 18:50:43 -0400 Subject: [PATCH] 3 bytes off for token in RelayResponse --- libi2pd/SSU2Session.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libi2pd/SSU2Session.cpp b/libi2pd/SSU2Session.cpp index ddeebbe8..cc358778 100644 --- a/libi2pd/SSU2Session.cpp +++ b/libi2pd/SSU2Session.cpp @@ -2313,7 +2313,7 @@ namespace transport size_t payloadSize = 12 + csz + i2p::context.GetIdentity ()->GetSignatureLen (); if (!code) { - memcpy (buf + payloadSize, &token, 8); + memcpy (buf + 3 + payloadSize, &token, 8); payloadSize += 8; } htobe16buf (buf + 1, payloadSize); // size