mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
windows: client connect: use sockaddr size
This commit is contained in:
parent
c92d9f9c5d
commit
2445793d15
1 changed files with 7 additions and 1 deletions
|
@ -110,7 +110,13 @@ lws_client_connect_check(struct lws *wsi, int *real_errno)
|
|||
|
||||
#else
|
||||
|
||||
if (!connect(wsi->desc.sockfd, (const struct sockaddr *)&wsi->sa46_peer.sa4, 0))
|
||||
if (!connect(wsi->desc.sockfd, (const struct sockaddr *)&wsi->sa46_peer.sa4,
|
||||
#if defined(WIN32)
|
||||
sizeof(struct sockaddr)))
|
||||
#else
|
||||
0))
|
||||
#endif
|
||||
|
||||
return LCCCR_CONNECTED;
|
||||
|
||||
en = LWS_ERRNO;
|
||||
|
|
Loading…
Add table
Reference in a new issue