diff options
author | teor <teor@torproject.org> | 2020-04-30 15:53:29 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2020-04-30 23:26:35 +1000 |
commit | 900994e46abc8049069fc285af54928eeba51d19 (patch) | |
tree | 67e25cee81b746eee15c33ce8ae9ed9c2b5a7f77 /src/feature/relay/selftest.c | |
parent | 18174fb82f236dd2c8c841f61cfe3d53697be2f8 (diff) | |
download | tor-900994e46abc8049069fc285af54928eeba51d19.tar.gz tor-900994e46abc8049069fc285af54928eeba51d19.zip |
relay: Remove unused DirPort self-test code
DIRIND_ANON_DIRPORT never uses our ORPort, so we don't need to set it in
the directory request.
Part of 33222.
Diffstat (limited to 'src/feature/relay/selftest.c')
-rw-r--r-- | src/feature/relay/selftest.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/feature/relay/selftest.c b/src/feature/relay/selftest.c index 5fc23b7e15..c3c75c899f 100644 --- a/src/feature/relay/selftest.c +++ b/src/feature/relay/selftest.c @@ -206,15 +206,12 @@ router_do_reachability_checks(int test_or, int test_dir) !connection_get_by_type_addr_port_purpose( CONN_TYPE_DIR, &addr, me->dir_port, DIR_PURPOSE_FETCH_SERVERDESC)) { - tor_addr_port_t my_orport, my_dirport; - memcpy(&my_orport.addr, &addr, sizeof(addr)); + tor_addr_port_t my_dirport; memcpy(&my_dirport.addr, &addr, sizeof(addr)); - my_orport.port = me->or_port; my_dirport.port = me->dir_port; /* ask myself, via tor, for my server descriptor. */ directory_request_t *req = directory_request_new(DIR_PURPOSE_FETCH_SERVERDESC); - directory_request_set_or_addr_port(req, &my_orport); directory_request_set_dir_addr_port(req, &my_dirport); directory_request_set_directory_id_digest(req, me->cache_info.identity_digest); |