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/connection_or.c | |
parent | e8da6b26b62475114937077e88905be921937554 (diff) | |
download | tor-6e6d95b3db091d4ae107c8d4f03354ccadd20757.tar.gz tor-6e6d95b3db091d4ae107c8d4f03354ccadd20757.zip |
Change from inet_ntoa to a threadproof tor_inet_ntoa.
svn:r3656
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r-- | src/or/connection_or.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c index aa0e624efc..7286de869e 100644 --- a/src/or/connection_or.c +++ b/src/or/connection_or.c @@ -157,7 +157,9 @@ connection_or_init_conn_from_address(connection_t *conn, } tor_free(conn->address); in.s_addr = htonl(addr); - conn->address = tor_strdup(inet_ntoa(in)); + + conn->address = tor_malloc(INET_NTOA_BUF_LEN); + tor_inet_ntoa(&in,conn->address,INET_NTOA_BUF_LEN); } void |