X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=crypt.c;h=431de6fe807f5a08acb8d4e62e0e6e3c160b6e1c;hp=207ad5db4e9f264091076d404adb06e12b95e8e4;hb=a7a72ca4acf7f44abca866d410e2bc80590e7fab;hpb=6f24630aa6d5ea343f0f0626b356d03fa36f890e diff --git a/crypt.c b/crypt.c index 207ad5db..431de6fe 100644 --- 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)