1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-31 04:44:13 +00:00

fixed misalignment

This commit is contained in:
orignal 2015-03-25 09:04:19 -04:00
parent 0a7bf4db47
commit 6e9149afd4

View File

@ -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)
{