[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Fix a server-side crash on DNS init
commit d3cb659541c7f5b0a0c9910e8f8c6b030c5f43f8
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Tue Nov 17 09:37:50 2015 -0500
Fix a server-side crash on DNS init
---
src/or/main.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/or/main.c b/src/or/main.c
index b63b81e..db6d726 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);
+ }
}
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits