aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-07-21 07:50:06 +0000
committerRoger Dingledine <arma@torproject.org>2004-07-21 07:50:06 +0000
commit3e97c12f24398db96d4f1926020656a1561082ca (patch)
treed634e5d3acfd97a5f8f753d6a622db5ee94fb9e3 /src/or/router.c
parent2d514037b7c9fa8a04eca4cf6e3864953b020d16 (diff)
downloadtor-3e97c12f24398db96d4f1926020656a1561082ca.tar
tor-3e97c12f24398db96d4f1926020656a1561082ca.tar.gz
rearrange to prepare to solve the authdirserver initialization
precedence problem. doesn't actually solve it yet. svn:r2079
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 578370893..c0f3cbce6 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -509,6 +509,8 @@ int router_rebuild_descriptor(void) {
ri->bandwidthburst = options.BandwidthBurst;
ri->exit_policy = NULL; /* zero it out first */
router_add_exit_policy_from_config(ri);
+ ri->is_trusted_dir = (ri->dir_port &&
+ router_digest_is_trusted_dir(ri->identity_digest));
if (desc_routerinfo)
routerinfo_free(desc_routerinfo);
desc_routerinfo = ri;
@@ -516,8 +518,6 @@ int router_rebuild_descriptor(void) {
log_fn(LOG_WARN, "Couldn't dump router to string.");
return -1;
}
- ri->is_trusted_dir = (ri->dir_port &&
- router_digest_is_trusted_dir(ri->identity_digest));
return 0;
}