aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-04-07 21:44:46 +0000
committerNick Mathewson <nickm@torproject.org>2004-04-07 21:44:46 +0000
commit4d14b786dad931fcca987658e7d4c5c6edc3195c (patch)
treeb0860c52aa56e8bc3e56c0589443837283f57fde
parent10b48fee28d635ff4e0763e5584ca2517c415613 (diff)
downloadtor-4d14b786dad931fcca987658e7d4c5c6edc3195c.tar.gz
tor-4d14b786dad931fcca987658e7d4c5c6edc3195c.zip
Make sure we have our own keys before we initialize our routerlist
svn:r1535
-rw-r--r--src/or/main.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/or/main.c b/src/or/main.c
index afe3566fb9..0842a1c50a 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -553,13 +553,6 @@ static int do_main_loop(void) {
int timeout;
int poll_result;
- /* load the routers file */
- if(options.RouterFile &&
- router_set_routerlist_from_file(options.RouterFile) < 0) {
- log_fn(LOG_ERR,"Error loading router list.");
- return -1;
- }
-
/* Initialize the history structures. */
rep_hist_init();
/* Intialize the service cache. */
@@ -572,6 +565,13 @@ static int do_main_loop(void) {
return -1;
}
+ /* load the routers file */
+ if(options.RouterFile &&
+ router_set_routerlist_from_file(options.RouterFile) < 0) {
+ log_fn(LOG_ERR,"Error loading router list.");
+ return -1;
+ }
+
if(options.DirPort) { /* the directory is already here, run startup things */
has_fetched_directory = 1;
directory_has_arrived();