projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1aee3ff
)
return failure when nslookup fails
author
Eric Andersen
<andersen@codepoet.org>
Wed, 13 Oct 2004 07:25:01 +0000
(07:25 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Wed, 13 Oct 2004 07:25:01 +0000
(07:25 -0000)
networking/nslookup.c
patch
|
blob
|
history
diff --git
a/networking/nslookup.c
b/networking/nslookup.c
index bb691d687a7ea959b86093f5555794a82054326b..936fa33cb5b970eea25ec670059969dd76eff2b8 100644
(file)
--- a/
networking/nslookup.c
+++ b/
networking/nslookup.c
@@
-197,7
+197,10
@@
int nslookup_main(int argc, char **argv)
host = xgethostbyname(argv[1]);
}
hostent_fprint(host, "Name: ");
- return EXIT_SUCCESS;
+ if (host) {
+ return EXIT_SUCCESS;
+ }
+ return EXIT_FAILURE;
}
-/* $Id: nslookup.c,v 1.3
2 2004/03/15 08:28:48
andersen Exp $ */
+/* $Id: nslookup.c,v 1.3
3 2004/10/13 07:25:01
andersen Exp $ */