From 23e6fc744ef584a04ad29c8fefd8886ce46bf2be Mon Sep 17 00:00:00 2001 From: matz Date: Sat, 29 Nov 2008 09:30:46 +0000 Subject: * ext/socket/socket.c (sock_getaddrinfo): should have updated for Mac OS X. a patch from Shumpei Akai in [ruby-dev:37234] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/socket/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/socket/socket.c b/ext/socket/socket.c index fc7388083e..2f7a07f864 100644 --- a/ext/socket/socket.c +++ b/ext/socket/socket.c @@ -953,7 +953,7 @@ sock_getaddrinfo(VALUE host, VALUE port, struct addrinfo *hints) struct addrinfo *r; r = res; while (r) { - if (! r->ai_socktype) r->ai_socktype = hints.ai_socktype; + if (! r->ai_socktype) r->ai_socktype = hints->ai_socktype; if (! r->ai_protocol) { if (r->ai_socktype == SOCK_DGRAM) { r->ai_protocol = IPPROTO_UDP; -- cgit v1.2.3