mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-24 01:46:36 +02:00
fixed crash
This commit is contained in:
parent
08f5af68f0
commit
ccb4e967cf
1 changed files with 1 additions and 0 deletions
|
@ -145,6 +145,7 @@ namespace tunnel
|
||||||
|
|
||||||
void Align (size_t alignment)
|
void Align (size_t alignment)
|
||||||
{
|
{
|
||||||
|
if (len + alignment > maxLen) return;
|
||||||
size_t rem = ((size_t)GetBuffer ()) % alignment;
|
size_t rem = ((size_t)GetBuffer ()) % alignment;
|
||||||
if (rem)
|
if (rem)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue