projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 't/clang_analyzer_fixes'
[paraslash.git]
/
crypt.c
diff --git
a/crypt.c
b/crypt.c
index 207ad5db4e9f264091076d404adb06e12b95e8e4..431de6fe807f5a08acb8d4e62e0e6e3c160b6e1c 100644
(file)
--- a/
crypt.c
+++ b/
crypt.c
@@
-307,7
+307,7
@@
int sc_send_bin_buffer(struct stream_cipher_context *scc, char *buf,
int sc_recv_bin_buffer(struct stream_cipher_context *scc, char *buf,
size_t size)
{
- unsigned char *tmp = para_malloc(
size
);
+ unsigned char *tmp = para_malloc(
ROUND_UP(size, RC4_ALIGN)
);
ssize_t ret = recv(scc->fd, tmp, size, 0);
if (ret > 0)