11 Star 0 Fork 15

src-openEuler/libwebsockets

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0003-client-hs-fix-segmentation-fault.patch 859 Bytes
一键复制 编辑 原始数据 按行查看 历史
liuxu 提交于 2024-08-27 17:19 +08:00 . client hs: fix segmentation fault
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/libwebsockets.git
git@gitee.com:src-openeuler/libwebsockets.git
src-openeuler
libwebsockets
libwebsockets
master

搜索帮助