mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
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
This commit is contained in:
parent
adc5bb4d04
commit
c0c67d28f5
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user