Browse Source

correct msg offset for follow-on fragment

pull/1771/head
orignal 2 years ago
parent
commit
624c46f925
  1. 2
      libi2pd/SSU2Session.cpp

2
libi2pd/SSU2Session.cpp

@ -1903,7 +1903,7 @@ namespace transport @@ -1903,7 +1903,7 @@ namespace transport
buf[0] = eSSU2BlkFirstFragment;
htobe16buf (buf + 1, msgLen); // size
memcpy (buf + 3, msgBuf, msgLen);
msg->offset = (msgBuf - buf) + msgLen;
msg->offset = (msgBuf - msg->buf) + msgLen;
return msgLen + 3;
}

Loading…
Cancel
Save