diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-02-22 08:18:36 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-02-22 08:18:36 +0000 |
commit | 6e6d95b3db091d4ae107c8d4f03354ccadd20757 (patch) | |
tree | 1c5799dcfb490b15934adffa42a564d9a47f8a91 /src/or/rendservice.c | |
parent | e8da6b26b62475114937077e88905be921937554 (diff) | |
download | tor-6e6d95b3db091d4ae107c8d4f03354ccadd20757.tar tor-6e6d95b3db091d4ae107c8d4f03354ccadd20757.tar.gz |
Change from inet_ntoa to a threadproof tor_inet_ntoa.
svn:r3656
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r-- | src/or/rendservice.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c index 109376096..f9c9c3e37 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -113,10 +113,12 @@ static void add_service(rend_service_t *service) smartlist_add(rend_service_list, service); log_fn(LOG_DEBUG,"Configuring service with directory %s",service->directory); for (i = 0; i < smartlist_len(service->ports); ++i) { + char addrbuf[INET_NTOA_BUF_LEN]; p = smartlist_get(service->ports, i); addr.s_addr = htonl(p->real_address); + tor_inet_ntoa(&addr, addrbuf, sizeof(addrbuf)); log_fn(LOG_DEBUG,"Service maps port %d to %s:%d", - p->virtual_port, inet_ntoa(addr), p->real_port); + p->virtual_port, addrbuf, p->real_port); } } } |