Hm. Where did we put that ntohl the last time we were juggling it? (hoop-lah).

svn:r6534
This commit is contained in:
Nick Mathewson 2006-06-05 00:32:31 +00:00
parent 008a0c7c46
commit 3db785ef73

View File

@ -1085,7 +1085,7 @@ eventdns_callback(int result, char type, int count, int ttl, void *addresses,
if (result == DNS_ERR_NONE) { if (result == DNS_ERR_NONE) {
if (type == DNS_IPv4_A && count) { if (type == DNS_IPv4_A && count) {
uint32_t *addrs = addresses; uint32_t *addrs = addresses;
addr = addrs[0]; addr = ntohl(addrs[0]);
status = DNS_RESOLVE_SUCCEEDED; status = DNS_RESOLVE_SUCCEEDED;
} else if (count) { } else if (count) {
log_warn(LD_EXIT, "eventdns returned only non-IPv4 answers for %s.", log_warn(LD_EXIT, "eventdns returned only non-IPv4 answers for %s.",