mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
We were neglecting to unlink marked circuits from soon-to-close OR connections.
svn:r5510
This commit is contained in:
parent
b03e8733f3
commit
fedc9c8a60
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user