mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-08 22:13:48 +01:00
adjust message length after alignment
This commit is contained in:
parent
357a9a6a56
commit
77687a70a2
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue