mirror of
https://github.com/sheumann/hush.git
synced 2024-09-12 00:55:11 +00:00
return failure when nslookup fails
This commit is contained in:
parent
1aee3ff8bb
commit
9789bf1019
@ -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 $ */
|
||||
|
Loading…
Reference in New Issue
Block a user