[or-cvs] Hm. Where did we put that ntohl the last time we were juggl...
Nick Mathewson
nickm at seul.org
Mon Jun 5 00:32:34 UTC 2006
Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv14435/src/or
Modified Files:
dns.c
Log Message:
Hm. Where did we put that ntohl the last time we were juggling it? (hoop-lah).
Index: dns.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/dns.c,v
retrieving revision 1.187
retrieving revision 1.188
diff -u -p -d -r1.187 -r1.188
--- dns.c 4 Jun 2006 22:42:12 -0000 1.187
+++ dns.c 5 Jun 2006 00:32:31 -0000 1.188
@@ -1085,7 +1085,7 @@ eventdns_callback(int result, char type,
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.",
More information about the tor-commits
mailing list