summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-12-05 19:26:09 +0000
committerNick Mathewson <nickm@torproject.org>2005-12-05 19:26:09 +0000
commitfedc9c8a605b07d2c1e1c2e8b08f80c1051dbf47 (patch)
tree515e3661698ac0fa454c2a058f0983f04fcf345b
parentb03e8733f35b8a61cb0c7d5c68b5532db2b796a8 (diff)
downloadtor-fedc9c8a605b07d2c1e1c2e8b08f80c1051dbf47.tar.gz
tor-fedc9c8a605b07d2c1e1c2e8b08f80c1051dbf47.zip
We were neglecting to unlink marked circuits from soon-to-close OR connections.
svn:r5510
-rw-r--r--src/or/circuitlist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c
index 6d1d61f00e..c9db1e9da2 100644
--- a/src/or/circuitlist.c
+++ b/src/or/circuitlist.c
@@ -458,7 +458,8 @@ circuit_get_by_edge_conn(connection_t *conn)
return circ;
}
-/** Return a new list of all circuits that have <b>conn</b> as n_conn or p_conn.
+/** Return a new list of all circuits that have <b>conn</b> as n_conn or
+ * p_conn, including those marked for close.
*/
smartlist_t *
circuit_get_all_on_orconn(connection_t *conn)
@@ -467,8 +468,7 @@ circuit_get_all_on_orconn(connection_t *conn)
circuit_t *circ;
for (circ=global_circuitlist;circ;circ = circ->next) {
- if (!circ->marked_for_close &&
- (circ->p_conn == conn || circ->n_conn == conn))
+ if (circ->p_conn == conn || circ->n_conn == conn)
smartlist_add(res, circ);
}
return res;