/*
- * Copyright (C) 2005-2009 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2005-2010 Andre Noll <maan@systemlinux.org>
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
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);