summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-10-22 22:54:28 +0000
committerNick Mathewson <nickm@torproject.org>2007-10-22 22:54:28 +0000
commit64b4b5a04e82f602034eb139904c0e113c7377a3 (patch)
tree86f5475faa4a64101250f51517c8257dac697992 /src
parent9ec9266374ff6668818a140f87a7207a356f006d (diff)
downloadtor-64b4b5a04e82f602034eb139904c0e113c7377a3.tar.gz
tor-64b4b5a04e82f602034eb139904c0e113c7377a3.zip
r16051@catbus: nickm | 2007-10-22 18:53:53 -0400
fix a dumb bug in r12102. svn:r12111
Diffstat (limited to 'src')
-rw-r--r--src/or/config.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/or/config.c b/src/or/config.c
index eb2f50bd0d..b4d7e3e87a 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -1120,14 +1120,16 @@ options_act(or_options_t *old_options)
mark_my_descriptor_dirty();
/* We may need to reschedule some directory stuff if our status changed. */
- if (authdir_mode_v3(options) && !authdir_mode_v3(old_options))
- dirvote_recalculate_timing(options, time(NULL));
- if (!bool_eq(dirserver_mode(options), dirserver_mode(old_options))) {
- /* Make sure update_router_have_min_dir_info gets called. */
- router_dir_info_changed();
- /* We might need to download a new consensus status later or sooner than
- * we had expected. */
- update_consensus_networkstatus_fetch_time(time(NULL));
+ if (old_options) {
+ if (authdir_mode_v3(options) && !authdir_mode_v3(old_options))
+ dirvote_recalculate_timing(options, time(NULL));
+ if (!bool_eq(dirserver_mode(options), dirserver_mode(old_options))) {
+ /* Make sure update_router_have_min_dir_info gets called. */
+ router_dir_info_changed();
+ /* We might need to download a new consensus status later or sooner than
+ * we had expected. */
+ update_consensus_networkstatus_fetch_time(time(NULL));
+ }
}
return 0;