X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=crypt.c;h=917948c6185710fb828b441025b8d46a0fdc2924;hp=b977a07aac1b785735238cc6e3e8e419f4fabf4a;hb=fa578bf1d070161cafcbcc69ca7b810414ee1a4b;hpb=b0fe6d882dd35b01360a66e130d6714aff7b6a0d diff --git a/crypt.c b/crypt.c index b977a07a..917948c6 100644 --- a/crypt.c +++ b/crypt.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2010 Andre Noll + * Copyright (C) 2005-2011 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -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);