mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-16 22:16:36 +02:00
fixed misalignment
This commit is contained in:
parent
0a7bf4db47
commit
6e9149afd4
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue