diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-02-13 16:33:29 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-02-13 16:36:58 -0800 |
commit | b30aa658d7b4d946427119b23cfc264cc7172149 (patch) | |
tree | e0c09a6f984c2f2cc494142649a2378cd598a9e7 /ext/kgio/connect.c | |
parent | f74bcf37ed31611d14aba2d4b4518c6a3dea0f40 (diff) | |
download | kgio-b30aa658d7b4d946427119b23cfc264cc7172149.tar.gz |
It's not needed since we already verify the service is a numeric port. AI_NUMERICSERV is not available in older glibc (<2.3.4) and probably other old systems.
Diffstat (limited to 'ext/kgio/connect.c')
-rw-r--r-- | ext/kgio/connect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/kgio/connect.c b/ext/kgio/connect.c index 1545853..8a91ea2 100644 --- a/ext/kgio/connect.c +++ b/ext/kgio/connect.c @@ -73,7 +73,7 @@ static VALUE tcp_connect(VALUE klass, VALUE ip, VALUE port, int io_wait) hints.ai_socktype = SOCK_STREAM; hints.ai_protocol = IPPROTO_TCP; /* disallow non-deterministic DNS lookups */ - hints.ai_flags = AI_NUMERICHOST | AI_NUMERICSERV; + hints.ai_flags = AI_NUMERICHOST; rc = getaddrinfo(ipname, ipport, &hints, &res); if (rc != 0) |