X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=crypt.c;h=b6a54604f167babf9c05712658233d713c229be0;hp=49e9e8ae7863fed3f40881a356957f115bf31769;hb=9b565c60fd159e12d255bb18db9dbff066deebea;hpb=2aa98426fca67a8b9c075ca7efea54aef18c0380 diff --git a/crypt.c b/crypt.c index 49e9e8ae..b6a54604 100644 --- a/crypt.c +++ b/crypt.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2009 Andre Noll + * Copyright (C) 2005-2010 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);