X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=crypt.c;h=b6a54604f167babf9c05712658233d713c229be0;hp=b977a07aac1b785735238cc6e3e8e419f4fabf4a;hb=6b935f552ebfe3a0a83ec9367deb2f42c1aff252;hpb=e90440367f744a7723b201a95888e66f070ffa92 diff --git a/crypt.c b/crypt.c index b977a07a..b6a54604 100644 --- a/crypt.c +++ b/crypt.c @@ -220,7 +220,7 @@ int rc4_send_bin_buffer(struct rc4_context *rc4c, const char *buf, size_t len) unsigned char *tmp; assert(len); - tmp = para_malloc(len); + tmp = para_malloc(len + 8); RC4(&rc4c->send_key, len, (const unsigned char *)buf, tmp); ret = write_all(rc4c->fd, (char *)tmp, &len); free(tmp);