Commit d3cb6595 authored by Nick Mathewson's avatar Nick Mathewson 🦀
Browse files

Fix a server-side crash on DNS init

parent 70f337fd
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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. */