mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
Use xgethostbyname instead of gethostbyname (found by Erik Andersen).
This commit is contained in:
parent
95bfe631a4
commit
524fcb9e01
@ -174,10 +174,10 @@ int nslookup_main(int argc, char **argv)
|
|||||||
if (is_ip_address(argv[1])) {
|
if (is_ip_address(argv[1])) {
|
||||||
host = gethostbyaddr_wrapper(argv[1]);
|
host = gethostbyaddr_wrapper(argv[1]);
|
||||||
} else {
|
} else {
|
||||||
host = gethostbyname(argv[1]);
|
host = xgethostbyname(argv[1]);
|
||||||
}
|
}
|
||||||
hostent_fprint(host);
|
hostent_fprint(host);
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* $Id: nslookup.c,v 1.24 2001/07/06 17:51:29 andersen Exp $ */
|
/* $Id: nslookup.c,v 1.25 2001/10/01 17:50:25 kraai Exp $ */
|
||||||
|
@ -174,10 +174,10 @@ int nslookup_main(int argc, char **argv)
|
|||||||
if (is_ip_address(argv[1])) {
|
if (is_ip_address(argv[1])) {
|
||||||
host = gethostbyaddr_wrapper(argv[1]);
|
host = gethostbyaddr_wrapper(argv[1]);
|
||||||
} else {
|
} else {
|
||||||
host = gethostbyname(argv[1]);
|
host = xgethostbyname(argv[1]);
|
||||||
}
|
}
|
||||||
hostent_fprint(host);
|
hostent_fprint(host);
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* $Id: nslookup.c,v 1.24 2001/07/06 17:51:29 andersen Exp $ */
|
/* $Id: nslookup.c,v 1.25 2001/10/01 17:50:25 kraai Exp $ */
|
||||||
|
Loading…
Reference in New Issue
Block a user