aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitlist.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/circuitlist.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/circuitlist.c')
-rw-r--r--src/or/circuitlist.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c
index 4f11586373..365e5b2f89 100644
--- a/src/or/circuitlist.c
+++ b/src/or/circuitlist.c
@@ -1990,10 +1990,10 @@ single_conn_free_bytes(connection_t *conn)
}
if (conn->type == CONN_TYPE_DIR) {
dir_connection_t *dir_conn = TO_DIR_CONN(conn);
- if (dir_conn->zlib_state) {
- result += tor_compress_state_size(dir_conn->zlib_state);
- tor_compress_free(dir_conn->zlib_state);
- dir_conn->zlib_state = NULL;
+ if (dir_conn->compress_state) {
+ result += tor_compress_state_size(dir_conn->compress_state);
+ tor_compress_free(dir_conn->compress_state);
+ dir_conn->compress_state = NULL;
}
}
return result;