From 8a44158f5a29862ba1ddc66b413f158c27cf51ce Mon Sep 17 00:00:00 2001 From: akr Date: Tue, 10 Feb 2009 12:15:54 +0000 Subject: * ext/socket/socket.c (sockaddr_obj): fill pfamily. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22211 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 796cee4c4..7e33de141 100644 --- a/ext/socket/socket.c +++ b/ext/socket/socket.c @@ -1432,7 +1432,7 @@ sockaddr_obj(struct sockaddr *addr) len = SA_LEN(addr); #endif - return addrinfo_new(addr, len, 0, 0, 0, Qnil, Qnil); + return addrinfo_new(addr, len, addr->sa_family, 0, 0, Qnil, Qnil); } #endif -- cgit