diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-06-05 00:32:31 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-06-05 00:32:31 +0000 |
commit | 3db785ef73d3a7cff0ebc7ba903116e5b3434cb2 (patch) | |
tree | 84418b2250bfcedcf9bbef6c87e54356ccd44f0b /src/or/dns.c | |
parent | 008a0c7c46fb5bcec4096a0376aa88a92e449c48 (diff) | |
download | tor-3db785ef73d3a7cff0ebc7ba903116e5b3434cb2.tar.gz tor-3db785ef73d3a7cff0ebc7ba903116e5b3434cb2.zip |
Hm. Where did we put that ntohl the last time we were juggling it? (hoop-lah).
svn:r6534
Diffstat (limited to 'src/or/dns.c')
-rw-r--r-- | src/or/dns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dns.c b/src/or/dns.c index 38fb4da608..728ffd041b 100644 --- a/src/or/dns.c +++ b/src/or/dns.c @@ -1085,7 +1085,7 @@ eventdns_callback(int result, char type, int count, int ttl, void *addresses, if (result == DNS_ERR_NONE) { if (type == DNS_IPv4_A && count) { uint32_t *addrs = addresses; - addr = addrs[0]; + addr = ntohl(addrs[0]); status = DNS_RESOLVE_SUCCEEDED; } else if (count) { log_warn(LD_EXIT, "eventdns returned only non-IPv4 answers for %s.", |