diff options
author | Roger Dingledine <arma@torproject.org> | 2007-01-06 04:48:34 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-01-06 04:48:34 +0000 |
commit | 71ed0314f6de999cdb4661f5b78bf72c3b14c7ac (patch) | |
tree | 75619e05bf8ff831d921d3f363351111e86bbca7 /src/tools/tor-resolve.c | |
parent | 81bcab21fc75c6e57c325a83f589dade9a6ff20f (diff) | |
download | tor-71ed0314f6de999cdb4661f5b78bf72c3b14c7ac.tar.gz tor-71ed0314f6de999cdb4661f5b78bf72c3b14c7ac.zip |
make tor-resolve -x work on intel-endian platforms too
svn:r9274
Diffstat (limited to 'src/tools/tor-resolve.c')
-rw-r--r-- | src/tools/tor-resolve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/tor-resolve.c b/src/tools/tor-resolve.c index 72032608b7..416b01ede6 100644 --- a/src/tools/tor-resolve.c +++ b/src/tools/tor-resolve.c @@ -85,7 +85,7 @@ build_socks_resolve_request(char **out, (*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); |