summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/win32/win32.c b/win32/win32.c
index a5469e7f8c..4b83480ff1 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -2480,6 +2480,8 @@ open_ifs_socket(int af, int type, int protocol)
out = WSASocket(af, type, protocol, &(proto_buffers[i]), 0, 0);
break;
}
+ if (out == INVALID_SOCKET)
+ out = WSASocket(af, type, protocol, NULL, 0, 0);
}
free(proto_buffers);