Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Curl
提交
fddd21b8
T
Third Party Curl
项目概览
OpenHarmony
/
Third Party Curl
8 个月 前同步成功
通知
4
Star
41
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Curl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
fddd21b8
编写于
1月 09, 2023
作者:
O
openharmony_ci
提交者:
Gitee
1月 09, 2023
浏览文件
操作
浏览文件
下载
差异文件
!99 【Openharmony 3.1 Release】修复CVE漏洞(CVE-2022-43551、CVE-2022-43552)
Merge pull request !99 from fengjiahui4/OpenHarmony-3.1-Release
上级
e95b3556
fffb24bc
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
3 addition
and
16 deletion
+3
-16
lib/http.c
lib/http.c
+1
-1
lib/smb.c
lib/smb.c
+2
-12
lib/telnet.c
lib/telnet.c
+0
-3
未找到文件。
lib/http.c
浏览文件 @
fddd21b8
...
...
@@ -3671,7 +3671,7 @@ CURLcode Curl_http_header(struct Curl_easy *data, struct connectdata *conn,
else
if
(
data
->
hsts
&&
checkprefix
(
"Strict-Transport-Security:"
,
headp
)
&&
(
conn
->
handler
->
flags
&
PROTOPT_SSL
))
{
CURLcode
check
=
Curl_hsts_parse
(
data
->
hsts
,
data
->
state
.
up
.
host
name
,
Curl_hsts_parse
(
data
->
hsts
,
conn
->
host
.
name
,
headp
+
strlen
(
"Strict-Transport-Security:"
));
if
(
check
)
infof
(
data
,
"Illegal STS header skipped"
);
...
...
lib/smb.c
浏览文件 @
fddd21b8
...
...
@@ -60,8 +60,6 @@ static CURLcode smb_connect(struct Curl_easy *data, bool *done);
static
CURLcode
smb_connection_state
(
struct
Curl_easy
*
data
,
bool
*
done
);
static
CURLcode
smb_do
(
struct
Curl_easy
*
data
,
bool
*
done
);
static
CURLcode
smb_request_state
(
struct
Curl_easy
*
data
,
bool
*
done
);
static
CURLcode
smb_done
(
struct
Curl_easy
*
data
,
CURLcode
status
,
bool
premature
);
static
CURLcode
smb_disconnect
(
struct
Curl_easy
*
data
,
struct
connectdata
*
conn
,
bool
dead
);
static
int
smb_getsock
(
struct
Curl_easy
*
data
,
struct
connectdata
*
conn
,
...
...
@@ -76,7 +74,7 @@ const struct Curl_handler Curl_handler_smb = {
"SMB"
,
/* scheme */
smb_setup_connection
,
/* setup_connection */
smb_do
,
/* do_it */
smb_done
,
/* done */
ZERO_NULL
,
/* done */
ZERO_NULL
,
/* do_more */
smb_connect
,
/* connect_it */
smb_connection_state
,
/* connecting */
...
...
@@ -103,7 +101,7 @@ const struct Curl_handler Curl_handler_smbs = {
"SMBS"
,
/* scheme */
smb_setup_connection
,
/* setup_connection */
smb_do
,
/* do_it */
smb_done
,
/* done */
ZERO_NULL
,
/* done */
ZERO_NULL
,
/* do_more */
smb_connect
,
/* connect_it */
smb_connection_state
,
/* connecting */
...
...
@@ -940,14 +938,6 @@ static CURLcode smb_request_state(struct Curl_easy *data, bool *done)
return
CURLE_OK
;
}
static
CURLcode
smb_done
(
struct
Curl_easy
*
data
,
CURLcode
status
,
bool
premature
)
{
(
void
)
premature
;
Curl_safefree
(
data
->
req
.
p
.
smb
);
return
status
;
}
static
CURLcode
smb_disconnect
(
struct
Curl_easy
*
data
,
struct
connectdata
*
conn
,
bool
dead
)
{
...
...
lib/telnet.c
浏览文件 @
fddd21b8
...
...
@@ -1246,9 +1246,6 @@ static CURLcode telnet_done(struct Curl_easy *data,
curl_slist_free_all
(
tn
->
telnet_vars
);
tn
->
telnet_vars
=
NULL
;
Curl_safefree
(
data
->
req
.
p
.
telnet
);
return
CURLE_OK
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录