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:
Nick Mathewson 2007-01-23 19:22:46 +00:00
parent adc5bb4d04
commit c0c67d28f5

View File

@ -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));