mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
don't copy buffer to ifself
This commit is contained in:
@@ -1036,6 +1036,7 @@ namespace crypto
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// encrypt/decrypt data and add to hash
|
// encrypt/decrypt data and add to hash
|
||||||
|
if (buf != msg)
|
||||||
memcpy (buf, msg, msgLen);
|
memcpy (buf, msg, msgLen);
|
||||||
if (encrypt)
|
if (encrypt)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user