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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user