Indeed, arma was right. There was one ntohl too many in debug_ntop in eventdns.c

svn:r17826
This commit is contained in:
Nick Mathewson
2008-12-30 04:08:45 +00:00
parent c190842a34
commit ffe22fab9b
2 changed files with 2 additions and 3 deletions
+1 -3
View File
@@ -402,9 +402,7 @@ debug_ntop(const struct sockaddr *sa)
{
if (sa->sa_family == AF_INET) {
struct sockaddr_in *sin = (struct sockaddr_in *) sa;
return debug_ntoa(ntohl(sin->sin_addr.s_addr));
/* XXX021 Nick: the above does ntoa of ntohl. This is
* probably one to-host too many. -RD */
return debug_ntoa(sin->sin_addr.s_addr);
}
if (sa->sa_family == AF_INET6) {
/* Tor-specific. In libevent, add more check code. */