mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-08 21:16:28 +00:00
different nonce location for PeerTest msg 2 and 4
This commit is contained in:
parent
ee20d5b804
commit
0253e2d3f6
@ -1413,7 +1413,7 @@ namespace transport
|
|||||||
|
|
||||||
void SSU2Session::HandlePeerTest (const uint8_t * buf, size_t len)
|
void SSU2Session::HandlePeerTest (const uint8_t * buf, size_t len)
|
||||||
{
|
{
|
||||||
uint32_t nonce = bufbe32toh (buf + 36);
|
uint32_t nonce = bufbe32toh ((buf[0] == 2 || buf[0] == 4) ? buf + 36 : buf + 4); // hash is presented for msg 2 and 4 only
|
||||||
switch (buf[0]) // msg
|
switch (buf[0]) // msg
|
||||||
{
|
{
|
||||||
case 1: // Bob from Alice
|
case 1: // Bob from Alice
|
||||||
|
Loading…
x
Reference in New Issue
Block a user