Browse Source

fixed off 5 bytes for follow on fragment

pull/1771/head
orignal 3 years ago
parent
commit
a68765e021
  1. 2
      libi2pd/SSU2Session.cpp

2
libi2pd/SSU2Session.cpp

@ -1927,7 +1927,7 @@ namespace transport @@ -1927,7 +1927,7 @@ namespace transport
isLast = false;
}
buf[0] = eSSU2BlkFollowOnFragment;
htobe16buf (buf + 1, msgLen); // size
htobe16buf (buf + 1, msgLen + 5); // size
fragmentNum++;
buf[3] = fragmentNum << 1;
if (isLast) buf[3] |= 0x01;

Loading…
Cancel
Save