diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-08-15 15:36:04 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-08-15 15:36:04 -0400 |
commit | d4634d1b72d660b1ea5ce9874fcd6b04a15968e9 (patch) | |
tree | 57ee2a0b0a1b5c41d13ac455884a826b000c675e /src/or/rendservice.c | |
parent | 1743144c341218e4af88423cccd2bf93e72730a1 (diff) | |
parent | 1555876d5f27acaa9326045e33b6e2bfc1013c7f (diff) | |
download | tor-d4634d1b72d660b1ea5ce9874fcd6b04a15968e9.tar.gz tor-d4634d1b72d660b1ea5ce9874fcd6b04a15968e9.zip |
Merge remote-tracking branch 'majek/bug9108'
Conflicts:
src/or/circuitlist.h
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r-- | src/or/rendservice.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c index 2e93fc3f54..fb56dc0360 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -543,7 +543,7 @@ rend_config_services(const or_options_t *options, int validate_only) /* XXXX it would be nicer if we had a nicer abstraction to use here, * so we could just iterate over the list of services to close, but * once again, this isn't critical-path code. */ - for (circ = circuit_get_global_list_(); circ; circ = circ->next) { + TOR_LIST_FOREACH(circ, circuit_get_global_list_(), head) { if (!circ->marked_for_close && circ->state == CIRCUIT_STATE_OPEN && (circ->purpose == CIRCUIT_PURPOSE_S_ESTABLISH_INTRO || @@ -2375,7 +2375,7 @@ count_established_intro_points(const char *query) { int num_ipos = 0; circuit_t *circ; - for (circ = circuit_get_global_list_(); circ; circ = circ->next) { + TOR_LIST_FOREACH(circ, circuit_get_global_list_(), head) { if (!circ->marked_for_close && circ->state == CIRCUIT_STATE_OPEN && (circ->purpose == CIRCUIT_PURPOSE_S_ESTABLISH_INTRO || |