summaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 0f26ce4217..80645779e9 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -1105,7 +1105,11 @@ do_main_loop(void)
{
int loop_result;
- dns_init(); /* initialize dns resolve map, spawn workers if needed */
+ /* initialize dns resolve map, spawn workers if needed */
+ if (dns_init() < 0) {
+ log_err(LD_GENERAL,"Error initializing dns subsystem; exiting");
+ return -1;
+ }
handle_signals(1);