mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 21:37:17 +01:00
alignment for tunnel message AES decryption
This commit is contained in:
parent
08706f5dfb
commit
328c2182c2
|
@ -872,6 +872,7 @@ namespace transport
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
auto nextMsg = NewI2NPMessage (size);
|
auto nextMsg = NewI2NPMessage (size);
|
||||||
|
nextMsg->Align (12); // for possible tunnel msg
|
||||||
nextMsg->len = nextMsg->offset + size + 7; // 7 more bytes for full I2NP header
|
nextMsg->len = nextMsg->offset + size + 7; // 7 more bytes for full I2NP header
|
||||||
memcpy (nextMsg->GetNTCP2Header (), frame + offset, size);
|
memcpy (nextMsg->GetNTCP2Header (), frame + offset, size);
|
||||||
nextMsg->FromNTCP2 ();
|
nextMsg->FromNTCP2 ();
|
||||||
|
|
Loading…
Reference in a new issue