[or-cvs] move network_init from or/main to common/compat

Roger Dingledine arma at seul.org
Wed Dec 22 05:29:08 UTC 2004


Update of /home2/or/cvsroot/tor/src/tools
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/tools

Modified Files:
	tor-resolve.c 
Log Message:
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


Index: tor-resolve.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/tools/tor-resolve.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- tor-resolve.c	30 Nov 2004 08:54:08 -0000	1.12
+++ tor-resolve.c	22 Dec 2004 05:29:06 -0000	1.13
@@ -211,6 +211,11 @@
     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;
 



More information about the tor-commits mailing list