mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-25 02:03:42 +00:00
fix #466
This commit is contained in:
+1
-1
@@ -1241,7 +1241,7 @@ int ss_decrypt_all(buffer_t *cipher, int method, int auth)
|
||||
static buffer_t tmp = { 0 };
|
||||
brealloc(&tmp, cipher->len, cipher->capacity);
|
||||
buffer_t *plain = &tmp;
|
||||
plain->len = cipher->len;
|
||||
plain->len = cipher->len - iv_len;
|
||||
|
||||
uint8_t iv[MAX_IV_LENGTH];
|
||||
memcpy(iv, cipher->array, iv_len);
|
||||
|
||||
Reference in New Issue
Block a user