summaryrefslogtreecommitdiff
path: root/src/or/control.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-11-20 12:03:46 -0500
committerNick Mathewson <nickm@torproject.org>2014-11-20 12:03:46 -0500
commit336c856e52d211aad6b40d29986264f3277a1327 (patch)
treef1b7930199642989c52161a1b5547e3417ede195 /src/or/control.c
parentf15cd22bb7c8f4f7009417e50a827c5bcc656807 (diff)
downloadtor-336c856e52d211aad6b40d29986264f3277a1327.tar.gz
tor-336c856e52d211aad6b40d29986264f3277a1327.zip
Make can_complete_circuits a static variable.
Diffstat (limited to 'src/or/control.c')
-rw-r--r--src/or/control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/control.c b/src/or/control.c
index 54464cc23b..72c62277f6 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -2015,7 +2015,7 @@ getinfo_helper_events(control_connection_t *control_conn,
/* Note that status/ is not a catch-all for events; there's only supposed
* to be a status GETINFO if there's a corresponding STATUS event. */
if (!strcmp(question, "status/circuit-established")) {
- *answer = tor_strdup(can_complete_circuit ? "1" : "0");
+ *answer = tor_strdup(have_completed_a_circuit() ? "1" : "0");
} else if (!strcmp(question, "status/enough-dir-info")) {
*answer = tor_strdup(router_have_minimum_dir_info() ? "1" : "0");
} else if (!strcmp(question, "status/good-server-descriptor") ||