Skip to content
Snippets Groups Projects
Commit 398e3f42 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

GetHost() now should return NULL when it fails, even for Tru64 unix

parent 281d4ced
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment