aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2001-10-01 17:50:25 +0000
committerMatt Kraai <kraai@debian.org>2001-10-01 17:50:25 +0000
commit524fcb9e01b6aa48334bfd6470045a0f3591cae9 (patch)
tree7dd9763b6e8c8632dccfad95dee2f93b7f706290
parent95bfe631a456537869d2514f5992bad81f2a8d03 (diff)
downloadbusybox-w32-524fcb9e01b6aa48334bfd6470045a0f3591cae9.tar.gz
busybox-w32-524fcb9e01b6aa48334bfd6470045a0f3591cae9.tar.bz2
busybox-w32-524fcb9e01b6aa48334bfd6470045a0f3591cae9.zip
Use xgethostbyname instead of gethostbyname (found by Erik Andersen).
-rw-r--r--networking/nslookup.c4
-rw-r--r--nslookup.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/networking/nslookup.c b/networking/nslookup.c
index 9b7cb645c..3e32ca9c0 100644
--- a/networking/nslookup.c
+++ b/networking/nslookup.c
@@ -174,10 +174,10 @@ int nslookup_main(int argc, char **argv)
174 if (is_ip_address(argv[1])) { 174 if (is_ip_address(argv[1])) {
175 host = gethostbyaddr_wrapper(argv[1]); 175 host = gethostbyaddr_wrapper(argv[1]);
176 } else { 176 } else {
177 host = gethostbyname(argv[1]); 177 host = xgethostbyname(argv[1]);
178 } 178 }
179 hostent_fprint(host); 179 hostent_fprint(host);
180 return EXIT_SUCCESS; 180 return EXIT_SUCCESS;
181} 181}
182 182
183/* $Id: nslookup.c,v 1.24 2001/07/06 17:51:29 andersen Exp $ */ 183/* $Id: nslookup.c,v 1.25 2001/10/01 17:50:25 kraai Exp $ */
diff --git a/nslookup.c b/nslookup.c
index 9b7cb645c..3e32ca9c0 100644
--- a/nslookup.c
+++ b/nslookup.c
@@ -174,10 +174,10 @@ int nslookup_main(int argc, char **argv)
174 if (is_ip_address(argv[1])) { 174 if (is_ip_address(argv[1])) {
175 host = gethostbyaddr_wrapper(argv[1]); 175 host = gethostbyaddr_wrapper(argv[1]);
176 } else { 176 } else {
177 host = gethostbyname(argv[1]); 177 host = xgethostbyname(argv[1]);
178 } 178 }
179 hostent_fprint(host); 179 hostent_fprint(host);
180 return EXIT_SUCCESS; 180 return EXIT_SUCCESS;
181} 181}
182 182
183/* $Id: nslookup.c,v 1.24 2001/07/06 17:51:29 andersen Exp $ */ 183/* $Id: nslookup.c,v 1.25 2001/10/01 17:50:25 kraai Exp $ */