diff options
author | Cristian Toader <cristian.matei.toader@gmail.com> | 2013-09-06 12:39:56 +0300 |
---|---|---|
committer | Cristian Toader <cristian.matei.toader@gmail.com> | 2013-09-06 12:39:56 +0300 |
commit | 6a22b29641834cecb446282588f9d47d8678b8b4 (patch) | |
tree | 0ea7aa0a7137fec7f88cbff2588a3cef0257c966 /src/common/address.c | |
parent | 839ff0063d3fca10a64abf69ab27d1fd88456889 (diff) | |
download | tor-6a22b29641834cecb446282588f9d47d8678b8b4.tar.gz tor-6a22b29641834cecb446282588f9d47d8678b8b4.zip |
passing hints as a const pointer to sandbox_getaddrinfo(), also one tor_free macro fails to compile..
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 a46aeb0d45..f9647b9a90 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, hints, &res); + err = sandbox_getaddrinfo(name, &hints, &res); if (!err) { best = NULL; for (res_p = res; res_p; res_p = res_p->ai_next) { |