diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-01-23 19:22:46 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-01-23 19:22:46 +0000 |
commit | c0c67d28f507e8403776afc14c5307b016b792a0 (patch) | |
tree | b3cb4e27deda45b6b70f6ec4821eea2f20762a46 /src | |
parent | adc5bb4d0486556d6f2be333f83f698cabf29a77 (diff) | |
download | tor-c0c67d28f507e8403776afc14c5307b016b792a0.tar.gz tor-c0c67d28f507e8403776afc14c5307b016b792a0.zip |
r9727@catbus: nickm | 2007-01-22 16:12:39 -0500
Remove redundant check for whether _connection_write_to_buf_impl is called with a zlib and a non-directory connection: TO_DIR_CONN will already assert if it gets a non-dir connection.
svn:r9390
Diffstat (limited to 'src')
-rw-r--r-- | src/or/connection.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 6a25cac731..e80633a740 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -1816,7 +1816,6 @@ _connection_write_to_buf_impl(const char *string, size_t len, if (zlib) { dir_connection_t *dir_conn = TO_DIR_CONN(conn); int done = zlib < 0; - if (!dir_conn) return; /* <-- XXX012 This line is pointless, yes? */ CONN_LOG_PROTECT(conn, r = write_to_buf_zlib(conn->outbuf, dir_conn->zlib_state, string, len, done)); |