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 (sock_addrinfo): should clear addrinfo hints.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eban 2002-04-02 06:12:04 +00:00
parent edf4c88f79
commit 1cfece051c
2 changed files with 5 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Tue Apr 2 15:09:05 2002 WATANABE Hirofumi <eban@ruby-lang.org>
* ext/socket/socket.c (sock_addrinfo): should clear addrinfo hints.
Mon Apr 1 23:48:12 2002 Takaaki Tateishi <ttate@kt.jaist.ac.jp>
* lib/mkmf.rb: install any files using $INSTALLFILES.

View file

@ -599,6 +599,7 @@ sock_addrinfo(host, port, socktype, flags)
}
else {
hintsp = &hints;
MEMZERO(&hints, struct addrinfo, 1);
hints.ai_family = PF_UNSPEC;
hints.ai_protocol = 0;
hints.ai_socktype = socktype;