diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-08-16 18:47:19 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-08-16 18:47:19 +0000 |
commit | b050ecf86c4eb236e88fa33a737c6f3b617140ad (patch) | |
tree | cb5d5fdc8d722dedc837260e172473fd1ff08c77 /src | |
parent | 6650470575e0e13a3b3dc33cb2e326f2402793b1 (diff) | |
download | tor-b050ecf86c4eb236e88fa33a737c6f3b617140ad.tar.gz tor-b050ecf86c4eb236e88fa33a737c6f3b617140ad.zip |
r7404@Kushana: nickm | 2006-08-16 09:32:19 -0400
Pass hints to getaddrinfo; fix bug 280 (?)
svn:r7069
Diffstat (limited to 'src')
-rw-r--r-- | src/common/compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index 1d71d5be1d..924a0394a3 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -732,7 +732,7 @@ tor_lookup_hostname(const char *name, uint32_t *addr) memset(&hints, 0, sizeof(hints)); hints.ai_family = PF_INET; hints.ai_socktype = SOCK_STREAM; - err = getaddrinfo(name, NULL, NULL, &res); + err = getaddrinfo(name, NULL, &hints, &res); if (!err) { for (res_p = res; res_p; res_p = res_p->ai_next) { if (res_p->ai_family == AF_INET) { |