[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r9274: make tor-resolve -x work on intel-endian platforms too (tor/trunk/src/tools)



Author: arma
Date: 2007-01-05 23:48:34 -0500 (Fri, 05 Jan 2007)
New Revision: 9274

Modified:
   tor/trunk/src/tools/tor-resolve.c
Log:
make tor-resolve -x work on intel-endian platforms too


Modified: tor/trunk/src/tools/tor-resolve.c
===================================================================
--- tor/trunk/src/tools/tor-resolve.c	2007-01-05 23:34:31 UTC (rev 9273)
+++ tor/trunk/src/tools/tor-resolve.c	2007-01-06 04:48:34 UTC (rev 9274)
@@ -85,7 +85,7 @@
     (*out)[2] = 0; /* reserved. */
     (*out)[3] = is_ip_address ? 1 : 3;
     if (is_ip_address) {
-      set_uint32((*out)+4, htonl(in.s_addr));
+      set_uint32((*out)+4, in.s_addr);
     } else {
       (*out)[4] = (char)(uint8_t)(addrlen - 1);
       memcpy((*out)+5, hostname, addrlen - 1);