mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-12 14:27:53 +00:00
correct msg offset for follow-on fragment
This commit is contained in:
parent
52d1ee161f
commit
624c46f925
@ -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…
Reference in New Issue
Block a user