]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
In dirserv_single_reachability_test, node can be const.
authorNick Mathewson <nickm@torproject.org>
Thu, 2 Feb 2017 14:36:36 +0000 (09:36 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 2 Feb 2017 14:36:36 +0000 (09:36 -0500)
src/or/dirserv.c

index 59d0c88381e4cbf08b266020e064da132755cd7b..d1670bf71a8a0633f7e68e876a3f7996b02b8b65 100644 (file)
@@ -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 &&