1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

client hs: fix segmentation fault

https://github.com/warmcat/libwebsockets/pull/3171
This commit is contained in:
zzblydia 2024-06-24 15:11:17 +08:00 committed by Andy Green
parent c571d22dba
commit ca375a4cab

View file

@ -1255,6 +1255,8 @@ lws_generate_client_handshake(struct lws *wsi, char *pkt)
// if (!wsi->client_pipeline)
// conn1 = "close, ";
p = lws_generate_client_ws_handshake(wsi, p, conn1);
if (!p)
return NULL;
} else
#endif
{