mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +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:
parent
3ef7d71863
commit
5ea7373a25
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue