mirror of
https://github.com/nmap/nmap.git
synced 2026-06-28 04:03:30 +00:00
Fixed non-portable perror() statement.
Replaced perror() by printf + socket_strerror(socket_errno()). Reported by Gisle Vanem.
This commit is contained in:
parent
623991eb82
commit
822d3e1da2
1 changed files with 1 additions and 1 deletions
|
|
@ -146,7 +146,7 @@ static int nsock_make_socket(mspool *ms, msiod *iod, int family, int type, int p
|
|||
/* inheritable_socket is from nbase */
|
||||
iod->sd = (int)inheritable_socket(family, type, proto);
|
||||
if (iod->sd == -1) {
|
||||
perror("Socket troubles");
|
||||
nsock_log_error(ms, "Socket trouble: %s", socket_strerror(socket_errno()));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue