Make hsdir_index in node_t a hsdir_index_t rather than a pointer.

This commit is contained in:
Neel Chauhan
2018-04-28 19:56:12 -04:00
parent cb0af6157c
commit bfe5a739b7
8 changed files with 42 additions and 47 deletions
+2 -3
View File
@@ -76,9 +76,8 @@ mock_node_get_by_id(const char *digest)
{
static node_t node;
memcpy(node.identity, digest, DIGEST_LEN);
node.hsdir_index = tor_malloc_zero(sizeof(hsdir_index_t));
memset(node.hsdir_index->fetch, 'C', DIGEST256_LEN);
memset(node.hsdir_index->store_first, 'D', DIGEST256_LEN);
memset(node.hsdir_index.fetch, 'C', DIGEST256_LEN);
memset(node.hsdir_index.store_first, 'D', DIGEST256_LEN);
return &node;
}