mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-31 00:34:20 +00:00
fixed misalignment
This commit is contained in:
parent
0a7bf4db47
commit
6e9149afd4
@ -1094,7 +1094,7 @@ namespace transport
|
||||
{
|
||||
uint8_t buf[SSU_MTU_V4 + 18];
|
||||
size_t msgSize = len + sizeof (SSUHeader);
|
||||
size_t paddingSize = msgSize >> 4; // %16
|
||||
size_t paddingSize = msgSize & 0x0F; // %16
|
||||
if (paddingSize > 0) msgSize += (16 - paddingSize);
|
||||
if (msgSize > SSU_MTU_V4)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user