X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=crypt.c;h=7b7c16d348952dab0dccbbd2170af178a703adb3;hb=56fd2aac201d881f9d656a5d41203f4335f4216b;hp=5b7029d32d1aa906b8d5dae49a0e965af9d1c87f;hpb=f60bda0c58218b9c5a617e82c2dcdd7c2f203fb5;p=paraslash.git diff --git a/crypt.c b/crypt.c index 5b7029d3..7b7c16d3 100644 --- a/crypt.c +++ b/crypt.c @@ -306,7 +306,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)