mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-24 01:54:33 +00:00
adjust message length after alignment
This commit is contained in:
parent
357a9a6a56
commit
77687a70a2
@ -122,7 +122,10 @@ namespace tunnel
|
|||||||
{
|
{
|
||||||
size_t rem = ((size_t)GetBuffer ()) % alignment;
|
size_t rem = ((size_t)GetBuffer ()) % alignment;
|
||||||
if (rem)
|
if (rem)
|
||||||
|
{
|
||||||
offset += (alignment - rem);
|
offset += (alignment - rem);
|
||||||
|
len += (alignment - rem);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
I2NPMessage& operator=(const I2NPMessage& other)
|
I2NPMessage& operator=(const I2NPMessage& other)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user