]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
answer resolved ip in network order
authorRoger Dingledine <arma@torproject.org>
Mon, 6 Dec 2004 06:14:45 +0000 (06:14 +0000)
committerRoger Dingledine <arma@torproject.org>
Mon, 6 Dec 2004 06:14:45 +0000 (06:14 +0000)
svn:r3087

src/or/connection_edge.c

index 3a99008b2fcbf661a0e40030432f297143bd43ef..49d91f855acb763c133b98166285e8970465ece8 100644 (file)
@@ -392,7 +392,7 @@ static int connection_ap_handshake_process_socks(connection_t *conn) {
         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) {