aboutsummaryrefslogtreecommitdiff
path: root/src/feature/nodelist/dirlist.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2021-01-29 18:21:30 +0200
committerDavid Goulet <dgoulet@torproject.org>2021-01-29 14:19:17 -0500
commit9eba65bd8b688497de139b57ac72e5b8a40bb728 (patch)
treeda22376452cb0303f0fd4acfc00f4ab837ad8845 /src/feature/nodelist/dirlist.c
parent93ac6ec4d3d19aaff7fed2ea97b0a30528da3767 (diff)
downloadtor-9eba65bd8b688497de139b57ac72e5b8a40bb728.tar.gz
tor-9eba65bd8b688497de139b57ac72e5b8a40bb728.zip
test: Add test for exits blocking reentry to the network
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/nodelist/dirlist.c')
-rw-r--r--src/feature/nodelist/dirlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/nodelist/dirlist.c b/src/feature/nodelist/dirlist.c
index 25f769dd5a..b4abffad67 100644
--- a/src/feature/nodelist/dirlist.c
+++ b/src/feature/nodelist/dirlist.c
@@ -71,8 +71,8 @@ add_trusted_dir_to_nodelist_addr_set(const dir_server_t *dir)
/** Go over the trusted directory server list and add their address(es) to the
* nodelist address set. This is called every time a new consensus is set. */
-void
-dirlist_add_trusted_dir_addresses(void)
+MOCK_IMPL(void,
+dirlist_add_trusted_dir_addresses, (void))
{
if (!trusted_dir_servers) {
return;