Browse Source

don't copy buffer to ifself

pull/1221/head
orignal 6 years ago
parent
commit
d320a89590
  1. 1
      libi2pd/Crypto.cpp

1
libi2pd/Crypto.cpp

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

Loading…
Cancel
Save