diff options
author | Roger Dingledine <arma@torproject.org> | 2005-05-23 05:20:52 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-05-23 05:20:52 +0000 |
commit | 040a748d87c7f7d1e81317498efa3ba0833303f7 (patch) | |
tree | b2800c06fcdbb771254bffb1b90a03ba1de04b99 /src/or/connection.c | |
parent | 36a21de66d5078fd01e8378f17dcbd4738aaacd4 (diff) | |
download | tor-040a748d87c7f7d1e81317498efa3ba0833303f7.tar.gz tor-040a748d87c7f7d1e81317498efa3ba0833303f7.zip |
i screwed up the dirport reachability testing when we don't yet
have a cached version of the directory. hopefully now fixed.
svn:r4284
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 95912072b4..9c9bea4517 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -1437,23 +1437,6 @@ connection_t *connection_get_by_type_state(int type, int state) { return NULL; } -/** Return a connection of type <b>type</b> that has purpose <b>purpose</b>, - * and that is not marked for close. - */ -connection_t *connection_get_by_type_purpose(int type, int purpose) { - int i, n; - connection_t *conn; - connection_t **carray; - - get_connection_array(&carray,&n); - for (i=0;i<n;i++) { - conn = carray[i]; - if (conn->type == type && conn->purpose == purpose && !conn->marked_for_close) - return conn; - } - return NULL; -} - /** Return the connection of type <b>type</b> that is in state * <b>state</b>, that was written to least recently, and that is not * marked for close. |