summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-12-22 05:29:06 +0000
committerRoger Dingledine <arma@torproject.org>2004-12-22 05:29:06 +0000
commitcf17d0d29c9526a0e9b6631693eb2bf0479e655c (patch)
treef2da64c5808b3120b5422d6e4948f73775976f92 /src/tools
parent036384fd8eaf83354ed59abec1c9816abd82528c (diff)
downloadtor-cf17d0d29c9526a0e9b6631693eb2bf0479e655c.tar.gz
tor-cf17d0d29c9526a0e9b6631693eb2bf0479e655c.zip
move network_init from or/main to common/compat
call network_init in tor-resolve.c too move tor_lookup_hostname from common/util to common/compat svn:r3203
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/tor-resolve.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/tor-resolve.c b/src/tools/tor-resolve.c
index a6e4402ce7..f269ee63bb 100644
--- a/src/tools/tor-resolve.c
+++ b/src/tools/tor-resolve.c
@@ -211,6 +211,11 @@ main(int argc, char **argv)
return 1;
}
+ if (network_init()<0) {
+ log_fn(LOG_ERR,"Error initializing network; exiting.");
+ return -1;
+ }
+
if (do_resolve(arg[0], sockshost, socksport, &result))
return 1;