Fix a server-side crash on DNS init

This commit is contained in:
Nick Mathewson 2015-11-17 09:37:50 -05:00
parent 70f337fdb2
commit d3cb659541

View File

@ -2201,10 +2201,12 @@ dns_servers_relaunch_checks(void)
{
if (server_mode(get_options())) {
dns_reset_correctness_checks();
if (periodic_events_initialized) {
tor_assert(check_dns_honesty_event);
periodic_event_reschedule(check_dns_honesty_event);
}
}
}
/** Called when we get a SIGHUP: reload configuration files and keys,
* retry all connections, and so on. */