summaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-10-27 18:14:38 +0000
committerNick Mathewson <nickm@torproject.org>2004-10-27 18:14:38 +0000
commit6874c3990426ca4efd4e88796854f2bab60df54d (patch)
tree769be37eec77b9849dd88657985e7a3bda30701c /src/or/dirserv.c
parentc5eb95b644284f3fc40d65e305386b84f65b92a2 (diff)
downloadtor-6874c3990426ca4efd4e88796854f2bab60df54d.tar.gz
tor-6874c3990426ca4efd4e88796854f2bab60df54d.zip
Fix windows build
svn:r2613
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 9ebb56a57a..551c17f9f0 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -511,8 +511,9 @@ list_server_status(char **running_routers_out, char **router_status_out)
SMARTLIST_FOREACH(descriptor_list, descriptor_entry_t *, d,
{
int is_live;
+ connection_t *conn;
tor_assert(d->router);
- connection_t *conn = connection_get_by_identity_digest(
+ conn = connection_get_by_identity_digest(
d->router->identity_digest, CONN_TYPE_OR);
is_live = (conn && conn->state == OR_CONN_STATE_OPEN);
smartlist_add(rr_entries, list_single_server_status(d, is_live, 1));