Browse Source

3 bytes off for token in RelayResponse

pull/1786/head
orignal 2 years ago
parent
commit
ff5fa1d137
  1. 2
      libi2pd/SSU2Session.cpp

2
libi2pd/SSU2Session.cpp

@ -2313,7 +2313,7 @@ namespace transport @@ -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

Loading…
Cancel
Save