mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
In dirserv_single_reachability_test, node can be const.
This commit is contained in:
parent
96dce88d80
commit
d732409402
@ -3263,13 +3263,13 @@ dirserv_single_reachability_test(time_t now, routerinfo_t *router)
|
|||||||
{
|
{
|
||||||
const or_options_t *options = get_options();
|
const or_options_t *options = get_options();
|
||||||
channel_t *chan = NULL;
|
channel_t *chan = NULL;
|
||||||
node_t *node = NULL;
|
const node_t *node = NULL;
|
||||||
tor_addr_t router_addr;
|
tor_addr_t router_addr;
|
||||||
const ed25519_public_key_t *ed_id_key;
|
const ed25519_public_key_t *ed_id_key;
|
||||||
(void) now;
|
(void) now;
|
||||||
|
|
||||||
tor_assert(router);
|
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);
|
tor_assert(node);
|
||||||
|
|
||||||
if (options->AuthDirTestEd25519LinkKeys &&
|
if (options->AuthDirTestEd25519LinkKeys &&
|
||||||
|
Loading…
Reference in New Issue
Block a user