Merge remote branch 'fml/master'
authorAndre Noll <maan@systemlinux.org>
Thu, 13 May 2010 18:13:02 +0000 (20:13 +0200)
committerAndre Noll <maan@systemlinux.org>
Thu, 13 May 2010 18:13:02 +0000 (20:13 +0200)
crypt.c

diff --git a/crypt.c b/crypt.c
index b977a07..b6a5460 100644 (file)
--- 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);