summaryrefslogtreecommitdiff
path: root/nslookup.c
diff options
context:
space:
mode:
authorMatt Kraai2001-10-01 17:50:25 +0000
committerMatt Kraai2001-10-01 17:50:25 +0000
commit524fcb9e01b6aa48334bfd6470045a0f3591cae9 (patch)
tree7dd9763b6e8c8632dccfad95dee2f93b7f706290 /nslookup.c
parent95bfe631a456537869d2514f5992bad81f2a8d03 (diff)
downloadbusybox-524fcb9e01b6aa48334bfd6470045a0f3591cae9.zip
busybox-524fcb9e01b6aa48334bfd6470045a0f3591cae9.tar.gz
Use xgethostbyname instead of gethostbyname (found by Erik Andersen).
Diffstat (limited to 'nslookup.c')
-rw-r--r--nslookup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nslookup.c b/nslookup.c
index 9b7cb64..3e32ca9 100644
--- a/nslookup.c
+++ b/nslookup.c
@@ -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 $ */