X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=crypt.c;h=7161e626119b5052689b03f161117c53004f6729;hp=431de6fe807f5a08acb8d4e62e0e6e3c160b6e1c;hb=5ac6b5f44f64ff9a2f0e01a65013da829edfab9e;hpb=63aab30b55d5809704a2d0e1c4e8de20e8228d7d diff --git a/crypt.c b/crypt.c index 431de6fe..7161e626 100644 --- a/crypt.c +++ b/crypt.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2011 Andre Noll + * Copyright (C) 2005-2012 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -7,7 +7,6 @@ /** \file crypt.c Openssl-based encryption/decryption routines. */ #include -#include #include #include #include @@ -299,7 +298,7 @@ int sc_send_bin_buffer(struct stream_cipher_context *scc, char *buf, memcpy(remainder, buf + l1, len - l1); RC4(&scc->send->key, len - l1, remainder, tmp + l1); } - ret = write_all(scc->fd, (char *)tmp, &len); + ret = write_all(scc->fd, (char *)tmp, len); free(tmp); return ret; }