mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Don't use the AI_NUMERICSERV flag, which isn't available on OS X, in the
getaddrinfo call in l_nsock_bind. We always use decimal port numbers anyway.
This commit is contained in:
parent
b32e147878
commit
91478be449
1 changed files with 1 additions and 2 deletions
|
|
@ -614,9 +614,8 @@ static int l_nsock_bind(lua_State * L)
|
|||
else
|
||||
hints.ai_family = AF_UNSPEC;
|
||||
/* AI_NUMERICHOST: don't use DNS to resolve names.
|
||||
AI_NUMERICSERV: don't look up service names.
|
||||
AI_PASSIVE: set an unspecified address if addr_str is NULL. */
|
||||
hints.ai_flags = AI_NUMERICHOST | AI_NUMERICSERV | AI_PASSIVE;
|
||||
hints.ai_flags = AI_NUMERICHOST | AI_PASSIVE;
|
||||
|
||||
rc = getaddrinfo(addr_str, port_str, &hints, &results);
|
||||
if (rc != 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue