1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-20 22:49:01 +00:00

Fixed non-portable perror() statement.

Replaced perror() by printf + socket_strerror(socket_errno()).
Reported by Gisle Vanem.
This commit is contained in:
henri
2013-08-10 20:19:09 +00:00
parent 623991eb82
commit 822d3e1da2

View File

@@ -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;
}