diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-10-13 07:25:01 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-10-13 07:25:01 +0000 |
commit | 9789bf1019e27b3b73d045515bf59c734f964066 (patch) | |
tree | 1f8f1a69a9e4f4a60fcf8898c3003d7437e739cc | |
parent | 1aee3ff8bb2ee6bdd51b0b4f6bac388b24934f96 (diff) | |
download | busybox-w32-9789bf1019e27b3b73d045515bf59c734f964066.tar.gz busybox-w32-9789bf1019e27b3b73d045515bf59c734f964066.tar.bz2 busybox-w32-9789bf1019e27b3b73d045515bf59c734f964066.zip |
return failure when nslookup fails
-rw-r--r-- | networking/nslookup.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/networking/nslookup.c b/networking/nslookup.c index bb691d687..936fa33cb 100644 --- a/networking/nslookup.c +++ b/networking/nslookup.c | |||
@@ -197,7 +197,10 @@ int nslookup_main(int argc, char **argv) | |||
197 | host = xgethostbyname(argv[1]); | 197 | host = xgethostbyname(argv[1]); |
198 | } | 198 | } |
199 | hostent_fprint(host, "Name: "); | 199 | hostent_fprint(host, "Name: "); |
200 | return EXIT_SUCCESS; | 200 | if (host) { |
201 | return EXIT_SUCCESS; | ||
202 | } | ||
203 | return EXIT_FAILURE; | ||
201 | } | 204 | } |
202 | 205 | ||
203 | /* $Id: nslookup.c,v 1.32 2004/03/15 08:28:48 andersen Exp $ */ | 206 | /* $Id: nslookup.c,v 1.33 2004/10/13 07:25:01 andersen Exp $ */ |