aboutsummaryrefslogtreecommitdiff
path: root/src/feature/control
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-04-30 12:42:33 -0400
committerNick Mathewson <nickm@torproject.org>2019-05-02 09:22:13 -0400
commit6f42efaa5926a2f1be89e3b591311f2130931db8 (patch)
treee4cc3cd0485c24e4c4362c32e66f6b46ec2e92ee /src/feature/control
parent996f7c75ba6abd9c4bc884f2c9a3b62889da9134 (diff)
downloadtor-6f42efaa5926a2f1be89e3b591311f2130931db8.tar.gz
tor-6f42efaa5926a2f1be89e3b591311f2130931db8.zip
Move voteflags.[ch] to become dirauth only.
For various reasons, this was a nontrivial movement. There are several places in the code where we do something like "update the flags on this routerstatus or node if we're an authority", and at least one where we pretended to be an authority when we weren't.
Diffstat (limited to 'src/feature/control')
-rw-r--r--src/feature/control/fmt_serverstatus.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/feature/control/fmt_serverstatus.c b/src/feature/control/fmt_serverstatus.c
index d224a1d234..a80bf50ad9 100644
--- a/src/feature/control/fmt_serverstatus.c
+++ b/src/feature/control/fmt_serverstatus.c
@@ -76,7 +76,6 @@ list_server_status_v1(smartlist_t *routers, char **router_status_out,
SMARTLIST_FOREACH_BEGIN(routers, routerinfo_t *, ri) {
const node_t *node = node_get_by_id(ri->cache_info.identity_digest);
tor_assert(node);
-
if (for_controller) {
char name_buf[MAX_VERBOSE_NICKNAME_LEN+2];
char *cp = name_buf;