mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 21:37:17 +01: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;
|
buf[0] = eSSU2BlkFirstFragment;
|
||||||
htobe16buf (buf + 1, msgLen); // size
|
htobe16buf (buf + 1, msgLen); // size
|
||||||
memcpy (buf + 3, msgBuf, msgLen);
|
memcpy (buf + 3, msgBuf, msgLen);
|
||||||
msg->offset = (msgBuf - buf) + msgLen;
|
msg->offset = (msgBuf - msg->buf) + msgLen;
|
||||||
return msgLen + 3;
|
return msgLen + 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue