mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 10:57:01 +00:00
- Don't memcpy() in place with void_encrypt
--HG-- extra : convert_revision : d123343d78df1b5998d8dd2674fd83fd682ce0c0
This commit is contained in:
parent
4be3826dd5
commit
08893f03a5
@ -31,7 +31,9 @@
|
||||
|
||||
static int void_cipher(const unsigned char* in, unsigned char* out,
|
||||
unsigned long len, void *cipher_state) {
|
||||
memcpy(out, in, len);
|
||||
if (in != out) {
|
||||
memmove(out, in, len);
|
||||
}
|
||||
return CRYPT_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user