From: Eric Andersen Date: Wed, 13 Oct 2004 07:25:01 +0000 (-0000) Subject: return failure when nslookup fails X-Git-Tag: 1_00~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9789bf1019e27b3b73d045515bf59c734f964066;p=platform%2Fupstream%2Fbusybox.git return failure when nslookup fails --- diff --git a/networking/nslookup.c b/networking/nslookup.c index bb691d6..936fa33 100644 --- 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.32 2004/03/15 08:28:48 andersen Exp $ */ +/* $Id: nslookup.c,v 1.33 2004/10/13 07:25:01 andersen Exp $ */