mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
windows: avoid NULL addr on connect check
https://github.com/warmcat/libwebsockets/issues/2596
This commit is contained in:
parent
3d98e29518
commit
e5d73be53d
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ lws_client_connect_check(struct lws *wsi)
|
|||
|
||||
#else
|
||||
|
||||
if (!connect(wsi->desc.sockfd, NULL, 0))
|
||||
if (!connect(wsi->desc.sockfd, (const struct sockaddr *)&wsi->sa46_peer.sa4, 0))
|
||||
return LCCCR_CONNECTED;
|
||||
|
||||
en = LWS_ERRNO;
|
||||
|
|
Loading…
Add table
Reference in a new issue