mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 19:27:49 +02:00
don't copy buffer to ifself
This commit is contained in:
parent
f7e4afc282
commit
d320a89590
1 changed files with 2 additions and 1 deletions
|
@ -1036,6 +1036,7 @@ namespace crypto
|
|||
}
|
||||
}
|
||||
// encrypt/decrypt data and add to hash
|
||||
if (buf != msg)
|
||||
memcpy (buf, msg, msgLen);
|
||||
if (encrypt)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue