aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorMarek Majkowski <marek@popcount.org>2013-06-20 16:56:54 +0100
committerMarek Majkowski <marek@popcount.org>2013-06-20 16:56:54 +0100
commit1555876d5f27acaa9326045e33b6e2bfc1013c7f (patch)
treee20e6c8074ba92ffb29c84b86fd1697c99f61772 /src/or/circuitbuild.c
parentd7538b57b49669afef0cb3dd03e0ed1a118a98fd (diff)
downloadtor-1555876d5f27acaa9326045e33b6e2bfc1013c7f.tar
tor-1555876d5f27acaa9326045e33b6e2bfc1013c7f.tar.gz
Fix #9108 - make global_circuitlist a doubly linked list
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 8cdb22718..0b5a8556c 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -2174,7 +2174,7 @@ pathbias_count_circs_in_states(entry_guard_t *guard,
int open_circuits = 0;
/* Count currently open circuits. Give them the benefit of the doubt. */
- for (circ = circuit_get_global_list_(); circ; circ = circ->next) {
+ TOR_LIST_FOREACH(circ, circuit_get_global_list_(), head) {
origin_circuit_t *ocirc = NULL;
if (!CIRCUIT_IS_ORIGIN(circ) || /* didn't originate here */
circ->marked_for_close) /* already counted */