diff options
author | Marek Majkowski <marek@popcount.org> | 2013-06-20 16:56:54 +0100 |
---|---|---|
committer | Marek Majkowski <marek@popcount.org> | 2013-06-20 16:56:54 +0100 |
commit | 1555876d5f27acaa9326045e33b6e2bfc1013c7f (patch) | |
tree | e20e6c8074ba92ffb29c84b86fd1697c99f61772 /src/or/control.c | |
parent | d7538b57b49669afef0cb3dd03e0ed1a118a98fd (diff) | |
download | tor-1555876d5f27acaa9326045e33b6e2bfc1013c7f.tar.gz tor-1555876d5f27acaa9326045e33b6e2bfc1013c7f.zip |
Fix #9108 - make global_circuitlist a doubly linked list
Diffstat (limited to 'src/or/control.c')
-rw-r--r-- | src/or/control.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/control.c b/src/or/control.c index cc917c46aa..a4c674f342 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -1928,7 +1928,7 @@ getinfo_helper_events(control_connection_t *control_conn, if (!strcmp(question, "circuit-status")) { circuit_t *circ_; smartlist_t *status = smartlist_new(); - for (circ_ = circuit_get_global_list_(); circ_; circ_ = circ_->next) { + TOR_LIST_FOREACH(circ_, circuit_get_global_list_(), head) { origin_circuit_t *circ; char *circdesc; const char *state; |