1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-23 06:39:01 +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:
david
2009-10-21 18:04:15 +00:00
parent b32e147878
commit 91478be449

View File

@@ -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) {