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 d128713a21..8fb1d2d860 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -2660,6 +2660,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);