diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-04-02 06:12:04 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-04-02 06:12:04 +0000 |
commit | 1cfece051cc64106c5ce18dfa75496633ac97069 (patch) | |
tree | 2df29ec2fcc9ad1d821090e7d359e90af1a7083e | |
parent | edf4c88f796a521c45318a6b7011f8af0f6d5733 (diff) | |
download | ruby-1cfece051cc64106c5ce18dfa75496633ac97069.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ext/socket/socket.c | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -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. diff --git a/ext/socket/socket.c b/ext/socket/socket.c index cc76bec78c..9a64399637 100644 --- a/ext/socket/socket.c +++ b/ext/socket/socket.c @@ -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; |