From 91478be449389c1c19f597175c0898fa536fb944 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 21 Oct 2009 18:04:15 +0000 Subject: [PATCH] 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. --- nse_nsock.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nse_nsock.cc b/nse_nsock.cc index a838c9a58..100addab2 100644 --- a/nse_nsock.cc +++ b/nse_nsock.cc @@ -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) {