[or-cvs] r9390: Remove redundant check for whether _connection_write_to_buf_ (in tor/trunk: . src/or)

nickm at seul.org nickm at seul.org
Tue Jan 23 19:22:47 UTC 2007


Author: nickm
Date: 2007-01-23 14:22:46 -0500 (Tue, 23 Jan 2007)
New Revision: 9390

Modified:
   tor/trunk/
   tor/trunk/src/or/connection.c
Log:
 r9727 at 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.



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/trunk [r9727] on 8246c3cf-6607-4228-993b-4d95d33730f1

Modified: tor/trunk/src/or/connection.c
===================================================================
--- tor/trunk/src/or/connection.c	2007-01-22 20:57:29 UTC (rev 9389)
+++ tor/trunk/src/or/connection.c	2007-01-23 19:22:46 UTC (rev 9390)
@@ -1816,7 +1816,6 @@
   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));



More information about the tor-commits mailing list