1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/socket/socket.c (sockaddr_obj): fill pfamily.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2009-02-10 12:15:54 +00:00
parent 98d3eca7fc
commit a038fab649
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Tue Feb 10 21:14:43 2009 Tanaka Akira <akr@fsij.org>
* ext/socket/socket.c (sockaddr_obj): fill pfamily.
Tue Feb 10 21:09:23 2009 Tanaka Akira <akr@fsij.org>
* ext/socket/option.c (sockopt_s_bool): new method.

View file

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