aboutsummaryrefslogtreecommitdiff
path: root/lib/hostip.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-09-18 21:16:27 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-09-18 21:16:27 +0000
commit398e3f423f3448064143ece0e9b79185f06f8097 (patch)
tree57ffecb5093073a4e00286c6bf25419637a095bd /lib/hostip.c
parent281d4cedc7c74a98bcac1b078942b5e8856a6b69 (diff)
GetHost() now should return NULL when it fails, even for Tru64 unix
Diffstat (limited to 'lib/hostip.c')
-rw-r--r--lib/hostip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index 6a2d30761..e5eecf705 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -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 {