mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 21:37:17 +01: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;
|
||||
if (rem)
|
||||
{
|
||||
offset += (alignment - rem);
|
||||
len += (alignment - rem);
|
||||
}
|
||||
}
|
||||
|
||||
I2NPMessage& operator=(const I2NPMessage& other)
|
||||
|
|
Loading…
Reference in a new issue