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
207ad5d
..
431de6f
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)