[or-cvs] answer resolved ip in network order

Roger Dingledine arma at seul.org
Mon Dec 6 06:14:47 UTC 2004


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

Modified Files:
	connection_edge.c 
Log Message:
answer resolved ip in network order


Index: connection_edge.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/connection_edge.c,v
retrieving revision 1.260
retrieving revision 1.261
diff -u -d -r1.260 -r1.261
--- connection_edge.c	6 Dec 2004 06:07:57 -0000	1.260
+++ connection_edge.c	6 Dec 2004 06:14:45 -0000	1.261
@@ -392,7 +392,7 @@
         return -1;
       }
       if (tor_inet_aton(socks->address, &in)) /* see if it's an IP already */
-        answer = ntohl(in.s_addr);
+        answer = in.s_addr;
       if (!answer && !conn->chosen_exit_name) /* if it's not .exit, check cache */
         answer = htonl(client_dns_lookup_entry(socks->address));
       if (answer) {



More information about the tor-commits mailing list