summaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-02-02 18:58:04 +0000
committerNick Mathewson <nickm@torproject.org>2007-02-02 18:58:04 +0000
commit07e6eecdb2df0b4130201c4252770724f74c642c (patch)
treec9b068a26c7b5467c0e215dc8c9481243eb48a3f /src/or/config.c
parent85076992560c80502b81424eb08d876e61e0f068 (diff)
downloadtor-07e6eecdb2df0b4130201c4252770724f74c642c.tar.gz
tor-07e6eecdb2df0b4130201c4252770724f74c642c.zip
r12122@Kushana: nickm | 2007-02-02 10:41:39 -0500
Fail when we are unable to parse the nameserver configuration. svn:r9475
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/config.c b/src/or/config.c
index d332c60fbc..7d7e788f0a 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -990,11 +990,13 @@ options_act(or_options_t *old_options)
inform_testing_reachability();
}
cpuworkers_rotate();
- dns_reset();
+ if (dns_reset())
+ return -1;
}
#ifdef USE_EVENTDNS
else {
- dns_reset();
+ if (dns_reset())
+ return -1;
}
#endif
}