]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - crypt.c
Move send_buffer() and send_va_buffer() from net.c to fd.c.
[paraslash.git] / crypt.c
diff --git a/crypt.c b/crypt.c
index 69e4a3140a1599f971dbd641dd99e3461af40ff1..7161e626119b5052689b03f161117c53004f6729 100644 (file)
--- a/crypt.c
+++ b/crypt.c
@@ -298,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;
 }