From 3db785ef73d3a7cff0ebc7ba903116e5b3434cb2 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 5 Jun 2006 00:32:31 +0000 Subject: [PATCH] Hm. Where did we put that ntohl the last time we were juggling it? (hoop-lah). svn:r6534 --- src/or/dns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.",