代码拉取完成,页面将自动刷新
From fdde9119f72f315a453d30c3f7448cbccc69fa8a Mon Sep 17 00:00:00 2001
From: zzblydia <13098426+zzblydia@users.noreply.github.com>
Date: Mon, 24 Jun 2024 15:11:17 +0800
Subject: [PATCH] client hs: fix segmentation fault
reason:sync with upstream
Conflict:NA
Reference:https://github.com/warmcat/libwebsockets/pull/3171
---
lib/roles/http/client/client-http.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/roles/http/client/client-http.c b/lib/roles/http/client/client-http.c
index 57dda701..05532f29 100644
--- a/lib/roles/http/client/client-http.c
+++ b/lib/roles/http/client/client-http.c
@@ -1641,6 +1641,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
{
--
2.43.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。