1 Star 0 Fork 39

linwei9/gnutls

forked from src-openEuler/gnutls 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-x509-drop-endless-loop-in-print_crl.patch 955 Bytes
一键复制 编辑 原始数据 按行查看 历史
From 283af4cd77058ba7fea8cff59c83d3f3f0231f9f Mon Sep 17 00:00:00 2001
From: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue, 10 Mar 2020 22:41:54 +0300
Subject: [PATCH] x509: apply same fix to print_crl
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
---
lib/x509/output.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/lib/x509/output.c b/lib/x509/output.c
index 6f829b06ac..c54902fe4d 100644
--- a/lib/x509/output.c
+++ b/lib/x509/output.c
@@ -2290,14 +2290,13 @@ print_crl(gnutls_buffer_st * str, gnutls_x509_crl_t crl, int notsigned)
oid,
&sizeof_oid,
&critical);
+ if (err == GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE)
+ break;
if (err < 0) {
- if (err ==
- GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE)
- break;
addf(str,
"error: get_extension_info: %s\n",
gnutls_strerror(err));
- continue;
+ break;
}
if (i == 0)
--
2.26.2
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/linwei9/gnutls.git
git@gitee.com:linwei9/gnutls.git
linwei9
gnutls
gnutls
master

搜索帮助