diff options
author | Cristian Toader <cristian.matei.toader@gmail.com> | 2013-08-19 13:56:50 +0300 |
---|---|---|
committer | Cristian Toader <cristian.matei.toader@gmail.com> | 2013-08-19 13:56:50 +0300 |
commit | 36aeca0ecf5f6e724a4d5da1795c9c9d76410290 (patch) | |
tree | 71c027df5f5a4ab48c2b5bed43a19af98108ae68 /src/common/address.c | |
parent | a9910d89f170933a7730798c98ebbb1d743a1c46 (diff) | |
download | tor-36aeca0ecf5f6e724a4d5da1795c9c9d76410290.tar.gz tor-36aeca0ecf5f6e724a4d5da1795c9c9d76410290.zip |
fix for getaddrinfo open syscall
Diffstat (limited to 'src/common/address.c')
-rw-r--r-- | src/common/address.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/address.c b/src/common/address.c index 227b4fbaee..5c8603ee20 100644 --- a/src/common/address.c +++ b/src/common/address.c @@ -14,6 +14,7 @@ #include "address.h" #include "torlog.h" #include "container.h" +#include "sandbox.h" #ifdef _WIN32 #include <process.h> @@ -234,7 +235,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 = getaddrinfo(name, NULL, &hints, &res); + err = sandbox_getaddrinfo(name, &res); if (!err) { best = NULL; for (res_p = res; res_p; res_p = res_p->ai_next) { |