mirror of
https://github.com/curl/curl.git
synced 2025-01-18 14:04:30 +08:00
GetHost() now should return NULL when it fails, even for Tru64 unix
This commit is contained in:
parent
281d4cedc7
commit
398e3f423f
@ -165,6 +165,7 @@ struct hostent *GetHost(struct UrlData *data,
|
||||
#endif
|
||||
{
|
||||
infof(data, "gethostbyname_r(2) failed for %s\n", hostname);
|
||||
h = NULL; /* set return code to NULL */
|
||||
}
|
||||
#else
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user