summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-10 00:57:49 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-10 00:57:49 +0000
commit703c1825ebcd2aa5ddd66847e93753d843d26575 (patch)
treef6afc76a62d1f33e49d0d63fed51a06dfc3ffb42 /win32
parentb916aa3ff80d45dc0c4e9c3011358a81d3a80857 (diff)
* win32/win32.c (ifs_open_socket): should retry without proto_buffer
if cannot find the suitable protocol. a patch from Heesob Park. fixed [ruby-core:19713] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 50fd55d076..ae692ce9f0 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -2642,6 +2642,8 @@ open_ifs_socket(int af, int type, int protocol)
WSA_FLAG_OVERLAPPED);
break;
}
+ if (out == INVALID_SOCKET)
+ out = WSASocket(af, type, protocol, NULL, 0, 0);
}
free(proto_buffers);