diff options
author | Roger Dingledine <arma@torproject.org> | 2004-10-14 08:45:07 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-10-14 08:45:07 +0000 |
commit | 572714a458bbf3c8a121db721881d5be67753019 (patch) | |
tree | 4a096d3fc23f7a6c879311af454db62c806f28f7 /src | |
parent | 0d0df005ffd337cece7211aaa749b725e3e9d2ae (diff) | |
download | tor-572714a458bbf3c8a121db721881d5be67753019.tar tor-572714a458bbf3c8a121db721881d5be67753019.tar.gz |
bugfix: parse_addr_port() bites us again -- it returns addr in network order.
svn:r2508
Diffstat (limited to 'src')
-rw-r--r-- | src/or/rendservice.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c index 2c86b4385..090a3a7cf 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -165,13 +165,13 @@ static rend_service_port_config_t *parse_port_config(const char *string) log_fn(LOG_WARN, "Port out of range"); return NULL; } - addr = 0x7F000001u; /* Default to 127.0.0.1 */ + addr = htonl(0x7F000001u); /* Default to 127.0.0.1 */ } result = tor_malloc(sizeof(rend_service_port_config_t)); result->virtual_port = virtport; result->real_port = realport; - result->real_address = addr; + result->real_address = ntohl(addr); return result; } |