aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-11-17 09:37:50 -0500
committerNick Mathewson <nickm@torproject.org>2015-11-17 09:37:50 -0500
commitd3cb659541c7f5b0a0c9910e8f8c6b030c5f43f8 (patch)
tree7d45eb0aeb0079a13ad7d32dc186357eedcbddee /src/or/main.c
parent70f337fdb20f5ce378e1bfb936aa63a40cdcacaa (diff)
downloadtor-d3cb659541c7f5b0a0c9910e8f8c6b030c5f43f8.tar.gz
tor-d3cb659541c7f5b0a0c9910e8f8c6b030c5f43f8.zip
Fix a server-side crash on DNS init
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/main.c b/src/or/main.c
index b63b81eb7e..db6d726306 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -2201,8 +2201,10 @@ dns_servers_relaunch_checks(void)
{
if (server_mode(get_options())) {
dns_reset_correctness_checks();
- tor_assert(check_dns_honesty_event);
- periodic_event_reschedule(check_dns_honesty_event);
+ if (periodic_events_initialized) {
+ tor_assert(check_dns_honesty_event);
+ periodic_event_reschedule(check_dns_honesty_event);
+ }
}
}