mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
ah, simplified my latest change more
This commit is contained in:
parent
e49a6feabb
commit
8879b57b73
@ -353,13 +353,6 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn,
|
||||
h = gethostbyname(hostname);
|
||||
if (!h)
|
||||
infof(data, "gethostbyname(2) failed for %s\n", hostname);
|
||||
else {
|
||||
/*
|
||||
* Translate the hostent to Curl_addrinfo and return the allocated
|
||||
* data.
|
||||
*/
|
||||
return Curl_addrinfo_copy(h, port);
|
||||
}
|
||||
#endif /*HAVE_GETHOSTBYNAME_R */
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user