1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-12 10:17:53 +00:00

correct msg offset for follow-on fragment

This commit is contained in:
orignal 2022-06-28 16:09:13 -04:00
parent 52d1ee161f
commit 624c46f925

View File

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