mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
r7404@Kushana: nickm | 2006-08-16 09:32:19 -0400
Pass hints to getaddrinfo; fix bug 280 (?) svn:r7069
This commit is contained in:
parent
6650470575
commit
b050ecf86c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user