summaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
authorMatthew Finkel <Matthew.Finkel@gmail.com>2015-05-25 23:09:33 +0000
committerNick Mathewson <nickm@torproject.org>2015-12-18 13:14:09 -0500
commitfb80a748eab12c246afc093801ea0b3c52543955 (patch)
treed4bb4cd56bfaad458d3d80d9f5ad5efc3c4bc809 /src/or/routerlist.c
parent3007de8efc962f21aa3649463b0d502f3747f687 (diff)
downloadtor-fb80a748eab12c246afc093801ea0b3c52543955.tar.gz
tor-fb80a748eab12c246afc093801ea0b3c52543955.zip
A router must be a dir cache before it may be HSDir
Fixes #15801
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r--src/or/routerlist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 227046b7b1..853c07d58c 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -4905,7 +4905,8 @@ router_differences_are_cosmetic(const routerinfo_t *r1, const routerinfo_t *r2)
strcasecmp(r1->contact_info, r2->contact_info)) ||
r1->is_hibernating != r2->is_hibernating ||
cmp_addr_policies(r1->exit_policy, r2->exit_policy) ||
- r1->dir_cache != r2->dir_cache)
+ (r1->supports_tunnelled_dir_requests !=
+ r2->supports_tunnelled_dir_requests))
return 0;
if ((r1->declared_family == NULL) != (r2->declared_family == NULL))
return 0;