summaryrefslogtreecommitdiff
path: root/src/or/hs_control.c
diff options
context:
space:
mode:
authorNeel Chauhan <neel@neelc.org>2018-04-28 19:56:12 -0400
committerNeel Chauhan <neel@neelc.org>2018-04-28 20:35:30 -0400
commitbfe5a739b79510d7ab32dad6e9882dc7b8bf024f (patch)
tree7886cbe60ae770db4978fdb1bdd159020d5e093f /src/or/hs_control.c
parentcb0af6157c0acbd0a30c20f8f0a3b9d4d1f402ad (diff)
downloadtor-bfe5a739b79510d7ab32dad6e9882dc7b8bf024f.tar.gz
tor-bfe5a739b79510d7ab32dad6e9882dc7b8bf024f.zip
Make hsdir_index in node_t a hsdir_index_t rather than a pointer.
Diffstat (limited to 'src/or/hs_control.c')
-rw-r--r--src/or/hs_control.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/hs_control.c b/src/or/hs_control.c
index 87b4e3fca8..eca9ed1dd5 100644
--- a/src/or/hs_control.c
+++ b/src/or/hs_control.c
@@ -39,9 +39,8 @@ hs_control_desc_event_requested(const ed25519_public_key_t *onion_pk,
* can't pick a node without an hsdir_index. */
hsdir_node = node_get_by_id(hsdir_rs->identity_digest);
tor_assert(hsdir_node);
- tor_assert(hsdir_node->hsdir_index);
/* This is a fetch event. */
- hsdir_index = hsdir_node->hsdir_index->fetch;
+ hsdir_index = hsdir_node->hsdir_index.fetch;
/* Trigger the event. */
control_event_hs_descriptor_requested(onion_address, REND_NO_AUTH,