1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-20 14:39:02 +00:00

Make it an error in nsock_make_socket if AF_UNIX can't bind.

http://seclists.org/nmap-dev/2012/q4/345
This commit is contained in:
david
2012-11-29 03:31:50 +00:00
parent 09014ec1c1
commit 2bfeace798

View File

@@ -94,6 +94,11 @@ static int nsock_make_socket(mspool *ms, msiod *iod, int family, int type, int p
addrstr = inet_ntop_ez(&iod->local, iod->locallen);
nsock_trace(ms, "Bind to %s failed (IOD #%li)", addrstr, iod->id);
#if HAVE_SYS_UN_H
/* Failure to bind an AF_UNIX socket is an unrecoverable error. */
if (iod->local.ss_family == AF_UNIX)
return -1;
#endif
}
}
}