summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2006-03-13 19:09:52 +0000
committerPeter Palfrader <peter@palfrader.org>2006-03-13 19:09:52 +0000
commitebfb3fea6d2ded57e64639c702714400b1624b21 (patch)
tree0af5034489a79311e92952bebbd990da0f1ed71e /src
parentc61ce09649024b566775bc3713a9bbb1e53d4bd5 (diff)
downloadtor-ebfb3fea6d2ded57e64639c702714400b1624b21.tar.gz
tor-ebfb3fea6d2ded57e64639c702714400b1624b21.zip
Fix minor semantic error with no real effect:
we were doing "is_internal_IP(htonl(in.s_addr))" but in.s_addr is in network order and is_internal_IP wants host order. Change to "is_internal_IP(ntohl(in.s_addr))". svn:r6155
Diffstat (limited to 'src')
-rw-r--r--src/or/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c
index ad6289b562..68ef7d6fd9 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -1566,7 +1566,7 @@ resolve_my_address(or_options_t *options, uint32_t *addr_out,
}
tor_inet_ntoa(&in,tmpbuf,sizeof(tmpbuf));
- if (is_internal_IP(htonl(in.s_addr), 0) &&
+ if (is_internal_IP(ntohl(in.s_addr), 0) &&
options->PublishServerDescriptor) {
/* make sure we're ok with publishing an internal IP */
if (!options->DirServers) {