From 398e3f423f3448064143ece0e9b79185f06f8097 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 18 Sep 2000 21:16:27 +0000 Subject: GetHost() now should return NULL when it fails, even for Tru64 unix --- lib/hostip.c | 1 + 1 file changed, 1 insertion(+) 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 { -- cgit v1.2.3