summaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2017-04-18 01:10:25 +0200
committerAlexander Færøy <ahf@torproject.org>2017-04-18 01:10:25 +0200
commit4b9349192d4bd2e9c598b13d74bc826c8f16d40e (patch)
tree4f95f1bf1d0c4de60e72ccc4fc0946c93c1fdd38 /src/or/connection.c
parent3c4459bcbf1d3a9da4a8b3a8bfed10d2e045af74 (diff)
downloadtor-4b9349192d4bd2e9c598b13d74bc826c8f16d40e.tar.gz
tor-4b9349192d4bd2e9c598b13d74bc826c8f16d40e.zip
Rename `zlib_state` to `compress_state` in `dir_connection_t`.
This patch renames the `zlib_state` field in `dir_connection_t` to `compress_state`. See https://bugs.torproject.org/21663
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index ad97c3bc2a..70b08e2deb 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -628,7 +628,7 @@ connection_free_(connection_t *conn)
dir_connection_t *dir_conn = TO_DIR_CONN(conn);
tor_free(dir_conn->requested_resource);
- tor_compress_free(dir_conn->zlib_state);
+ tor_compress_free(dir_conn->compress_state);
if (dir_conn->spool) {
SMARTLIST_FOREACH(dir_conn->spool, spooled_resource_t *, spooled,
spooled_resource_free(spooled));
@@ -4061,7 +4061,7 @@ connection_write_to_buf_impl_,(const char *string, size_t len,
dir_connection_t *dir_conn = TO_DIR_CONN(conn);
int done = zlib < 0;
CONN_LOG_PROTECT(conn, r = write_to_buf_zlib(conn->outbuf,
- dir_conn->zlib_state,
+ dir_conn->compress_state,
string, len, done));
} else {
CONN_LOG_PROTECT(conn, r = write_to_buf(string, len, conn->outbuf));