diff options
author | Roger Dingledine <arma@torproject.org> | 2006-08-27 01:41:08 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-08-27 01:41:08 +0000 |
commit | 24ad1e06cf2ff1f37483faa6f882cfda249a3ac2 (patch) | |
tree | 083c4ebbb9e2a0a0f2a4d25a1143591ae47a9699 /src/or/main.c | |
parent | 8297608217701d7ad9f1b415afb35d46f7e05a16 (diff) | |
download | tor-24ad1e06cf2ff1f37483faa6f882cfda249a3ac2.tar.gz tor-24ad1e06cf2ff1f37483faa6f882cfda249a3ac2.zip |
i'm guessing nick meant to check the return value of dns_init.
and revise some log severities to match the convention.
svn:r8234
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 6 |
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); |