[tor-commits] [tor/master] Remove a now-needless test.

nickm at torproject.org nickm at torproject.org
Wed Sep 7 18:16:42 UTC 2011


commit d27874a4f22c7c1ad7b1c28f418f09ce268bb3a4
Author: Nick Mathewson <nickm at torproject.org>
Date:   Wed Sep 7 14:18:32 2011 -0400

    Remove a now-needless test.
---
 src/or/circuitbuild.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 39a50ab..a66f340 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -2653,8 +2653,7 @@ ap_stream_wants_exit_attention(connection_t *conn)
     return 0;
   entry = TO_ENTRY_CONN(conn);
 
-  if (conn->type == CONN_TYPE_AP &&
-      conn->state == AP_CONN_STATE_CIRCUIT_WAIT &&
+  if (conn->state == AP_CONN_STATE_CIRCUIT_WAIT &&
       !conn->marked_for_close &&
       !(entry->want_onehop) && /* ignore one-hop streams */
       !(entry->use_begindir) && /* ignore targeted dir fetches */





More information about the tor-commits mailing list