diff options
author | Cristian Toader <cristian.matei.toader@gmail.com> | 2013-09-03 16:37:12 +0300 |
---|---|---|
committer | Cristian Toader <cristian.matei.toader@gmail.com> | 2013-09-03 16:37:12 +0300 |
commit | 55d8b8e578e17d8654f33f62fdc4a4419a6b92a7 (patch) | |
tree | 6c8b051089007275ded90a412d5b12168b28463b /src/common/address.c | |
parent | b4b0eddd29b0b2ad78e4cf61362283034677f42f (diff) | |
download | tor-55d8b8e578e17d8654f33f62fdc4a4419a6b92a7.tar.gz tor-55d8b8e578e17d8654f33f62fdc4a4419a6b92a7.zip |
fixed bug where sandbox_getaddrinfo() would fail when -Sandbox is 0
Diffstat (limited to 'src/common/address.c')
-rw-r--r-- | src/common/address.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/address.c b/src/common/address.c index 5c8603ee20..a46aeb0d45 100644 --- a/src/common/address.c +++ b/src/common/address.c @@ -235,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 = sandbox_getaddrinfo(name, &res); + err = sandbox_getaddrinfo(name, hints, &res); if (!err) { best = NULL; for (res_p = res; res_p; res_p = res_p->ai_next) { |