diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-05-01 08:56:23 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-05-01 08:56:23 -0400 |
commit | 4cf6b67f5e83e1a26b4b2fbdb3b169c137a30687 (patch) | |
tree | 5f83cc4fb3260df61a8c45c8e5c8a992da8d44b6 /src/test | |
parent | 07b486c17a0c268bdcc5c47c41948ed4e16baa02 (diff) | |
parent | bfe5a739b79510d7ab32dad6e9882dc7b8bf024f (diff) | |
download | tor-4cf6b67f5e83e1a26b4b2fbdb3b169c137a30687.tar.gz tor-4cf6b67f5e83e1a26b4b2fbdb3b169c137a30687.zip |
Merge remote-tracking branch 'neel/b23094'
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_hs_control.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/test_hs_control.c b/src/test/test_hs_control.c index 207a55de6d..308843e9b8 100644 --- a/src/test/test_hs_control.c +++ b/src/test/test_hs_control.c @@ -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; } |