1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-22 12:24:19 +00:00

3 bytes off for token in RelayResponse

This commit is contained in:
orignal 2022-07-30 18:50:43 -04:00
parent 71766ecd16
commit ff5fa1d137

View File

@ -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