Use xgethostbyname instead of gethostbyname (found by Erik Andersen).
authorMatt Kraai <kraai@debian.org>
Mon, 1 Oct 2001 17:50:25 +0000 (17:50 -0000)
committerMatt Kraai <kraai@debian.org>
Mon, 1 Oct 2001 17:50:25 +0000 (17:50 -0000)
networking/nslookup.c
nslookup.c

index 9b7cb64..3e32ca9 100644 (file)
@@ -174,10 +174,10 @@ int nslookup_main(int argc, char **argv)
        if (is_ip_address(argv[1])) {
                host = gethostbyaddr_wrapper(argv[1]);
        } else {
-               host = gethostbyname(argv[1]);
+               host = xgethostbyname(argv[1]);
        }
        hostent_fprint(host);
        return EXIT_SUCCESS;
 }
 
-/* $Id: nslookup.c,v 1.24 2001/07/06 17:51:29 andersen Exp $ */
+/* $Id: nslookup.c,v 1.25 2001/10/01 17:50:25 kraai Exp $ */
index 9b7cb64..3e32ca9 100644 (file)
@@ -174,10 +174,10 @@ int nslookup_main(int argc, char **argv)
        if (is_ip_address(argv[1])) {
                host = gethostbyaddr_wrapper(argv[1]);
        } else {
-               host = gethostbyname(argv[1]);
+               host = xgethostbyname(argv[1]);
        }
        hostent_fprint(host);
        return EXIT_SUCCESS;
 }
 
-/* $Id: nslookup.c,v 1.24 2001/07/06 17:51:29 andersen Exp $ */
+/* $Id: nslookup.c,v 1.25 2001/10/01 17:50:25 kraai Exp $ */