diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-09-18 21:16:27 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-09-18 21:16:27 +0000 |
commit | 398e3f423f3448064143ece0e9b79185f06f8097 (patch) | |
tree | 57ffecb5093073a4e00286c6bf25419637a095bd /lib | |
parent | 281d4cedc7c74a98bcac1b078942b5e8856a6b69 (diff) |
GetHost() now should return NULL when it fails, even for Tru64 unix
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hostip.c | 1 |
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 { |