summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-02-02 09:36:36 -0500
committerNick Mathewson <nickm@torproject.org>2017-02-02 09:36:36 -0500
commitd732409402c18c447eea7e06f32885706377ebd3 (patch)
tree60810e08c118385cd51dd09b27928cd1d9d07709
parent96dce88d80f422914eb93a7236e5dc1eaed4cfb6 (diff)
downloadtor-d732409402c18c447eea7e06f32885706377ebd3.tar.gz
tor-d732409402c18c447eea7e06f32885706377ebd3.zip
In dirserv_single_reachability_test, node can be const.
-rw-r--r--src/or/dirserv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 59d0c88381..d1670bf71a 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -3263,13 +3263,13 @@ dirserv_single_reachability_test(time_t now, routerinfo_t *router)
{
const or_options_t *options = get_options();
channel_t *chan = NULL;
- node_t *node = NULL;
+ const node_t *node = NULL;
tor_addr_t router_addr;
const ed25519_public_key_t *ed_id_key;
(void) now;
tor_assert(router);
- node = node_get_mutable_by_id(router->cache_info.identity_digest);
+ node = node_get_by_id(router->cache_info.identity_digest);
tor_assert(node);
if (options->AuthDirTestEd25519LinkKeys &&