diff options
author | rl1987 <rl1987@sdf.lonestar.org> | 2018-07-03 14:27:57 +0300 |
---|---|---|
committer | rl1987 <rl1987@sdf.lonestar.org> | 2018-07-03 15:53:39 +0300 |
commit | 439b528f25e29b572a7bd04bc1d5fcaee68f5796 (patch) | |
tree | e11e29d8a17dcac8ba634052904b42b90d69023d /src/lib/net/address.c | |
parent | a9628c0c0b2cc5c0286c4e49591b3b18dc054e87 (diff) | |
download | tor-439b528f25e29b572a7bd04bc1d5fcaee68f5796.tar.gz tor-439b528f25e29b572a7bd04bc1d5fcaee68f5796.zip |
Rename sandbox_getaddrinfo() et. al.
Diffstat (limited to 'src/lib/net/address.c')
-rw-r--r-- | src/lib/net/address.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/net/address.c b/src/lib/net/address.c index 10e38871ee..f3eddca7bb 100644 --- a/src/lib/net/address.c +++ b/src/lib/net/address.c @@ -277,7 +277,7 @@ tor_addr_lookup,(const char *name, uint16_t family, tor_addr_t *addr)) memset(&hints, 0, sizeof(hints)); hints.ai_family = family; hints.ai_socktype = SOCK_STREAM; - err = sandbox_getaddrinfo(name, NULL, &hints, &res); + err = tor_getaddrinfo(name, NULL, &hints, &res); /* The check for 'res' here shouldn't be necessary, but it makes static * analysis tools happy. */ if (!err && res) { @@ -306,7 +306,7 @@ tor_addr_lookup,(const char *name, uint16_t family, tor_addr_t *addr)) &((struct sockaddr_in6*)best->ai_addr)->sin6_addr); result = 0; } - sandbox_freeaddrinfo(res); + tor_freeaddrinfo(res); return result; } return (err == EAI_AGAIN) ? 1 : -1; |