commit d8649f577f615b53fc207f97932111a49a986119 Author: David Goulet dgoulet@ev0ke.net Date: Sat Feb 8 14:22:08 2014 -0500
Fix: bad reference in getaddrinfo() using inet_pton
Signed-off-by: David Goulet dgoulet@ev0ke.net --- src/lib/getaddrinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/getaddrinfo.c b/src/lib/getaddrinfo.c index 7d60e3e..c93cd42 100644 --- a/src/lib/getaddrinfo.c +++ b/src/lib/getaddrinfo.c @@ -66,7 +66,7 @@ LIBC_GETADDRINFO_RET_TYPE tsocks_getaddrinfo(LIBC_GETADDRINFO_SIG) break; }
- ret = inet_pton(af, __node, &addr); + ret = inet_pton(af, __node, addr); if (ret == 0) { /* The node most probably is a DNS name. */ ret = tsocks_tor_resolve(__node, (uint32_t *) addr);
tor-commits@lists.torproject.org