1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-09 15:06:35 +00:00

Fix compilation on systems for which HAVE_SOCKADDR_SA_LEN is not defined. I don't think this issue affects any released version as it seems to have been introduced on r34671. Reported by Schuh Andreas

This commit is contained in:
fyodor
2015-06-20 21:56:01 +00:00
parent 3ef7d71863
commit 5ea7373a25

View File

@@ -462,8 +462,8 @@ int do_listen(int type, int proto, const union sockaddr_u *srcaddr_u)
default:
sa_len = sizeof(*srcaddr_u);
break;
}
#endif
}
if (bind(sock, &srcaddr_u->sockaddr, sa_len) < 0) {
#ifdef HAVE_SYS_UN_H