X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=crypt.c;h=431de6fe807f5a08acb8d4e62e0e6e3c160b6e1c;hp=207ad5db4e9f264091076d404adb06e12b95e8e4;hb=63aab30b55d5809704a2d0e1c4e8de20e8228d7d;hpb=474b4dfc006b9a7520d017ca4c82aab589dff934 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)