diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-01-06 20:11:52 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-01-06 20:11:52 +0000 |
commit | 91bafc476ef1e5a6e51c61d4a2b1c206af628ffc (patch) | |
tree | 3de6b89854752ea21941288e3b564ed77f699350 /src/or/dirserv.c | |
parent | f8b517fa9783b2445667d0bb23c22b719e7a428e (diff) | |
download | tor-91bafc476ef1e5a6e51c61d4a2b1c206af628ffc.tar.gz tor-91bafc476ef1e5a6e51c61d4a2b1c206af628ffc.zip |
Fix a fun bug: do not rewrite a cached directory back to the cache; otherwise we will think it is recent and not fetch a newer one.
svn:r3319
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 7462e1ee7c..2f04cc6a6e 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -820,7 +820,8 @@ static int dirserv_regenerate_directory(void) * necessary, but safe is better than sorry. */ new_directory = tor_strdup(the_directory); /* use a new copy of the dir, since get_dir_from_string scribbles on it */ - if (router_load_routerlist_from_directory(new_directory, get_identity_key(), 1)) { + if (router_load_routerlist_from_directory(new_directory, + get_identity_key(), 1, 0)) { log_fn(LOG_ERR, "We just generated a directory we can't parse. Dying."); tor_cleanup(); exit(0); |