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