]> granicus.if.org Git - curl/commitdiff
GetHost() now should return NULL when it fails, even for Tru64 unix
authorDaniel Stenberg <daniel@haxx.se>
Mon, 18 Sep 2000 21:16:27 +0000 (21:16 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 18 Sep 2000 21:16:27 +0000 (21:16 +0000)
lib/hostip.c

index 6a2d307613d35f20612b40324649273289b9ee70..e5eecf705fbb1d8064780695150dc5bb3b925553 100644 (file)
@@ -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 {