mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
client: ipv6 reject when lws_getaddrinfo46 failed
https://github.com/warmcat/libwebsockets/issues/978
This commit is contained in:
parent
3562e441e3
commit
61e58885f4
1 changed files with 8 additions and 0 deletions
|
@ -111,6 +111,14 @@ lws_client_connect_2(struct lws *wsi)
|
|||
#ifdef LWS_USE_IPV6
|
||||
if (wsi->ipv6) {
|
||||
|
||||
if (n) {
|
||||
/* lws_getaddrinfo46 failed, there is no usable result */
|
||||
lwsl_notice("%s: lws_getaddrinfo46 failed %d\n",
|
||||
__func__, n);
|
||||
cce = "ipv6 lws_getaddrinfo46 failed";
|
||||
goto oom4;
|
||||
}
|
||||
|
||||
memset(&sa46, 0, sizeof(sa46));
|
||||
|
||||
sa46.sa6.sin6_family = AF_INET6;
|
||||
|
|
Loading…
Add table
Reference in a new issue