diff --git a/0046-fix-return-value.patch b/0046-fix-return-value.patch new file mode 100644 index 0000000000000000000000000000000000000000..ab65aec088c723811448d35e0ce4eeeafac7bcbf --- /dev/null +++ b/0046-fix-return-value.patch @@ -0,0 +1,25 @@ +From 1f6f2ff01317c6f04de7cab7c3a126e7ce485df7 Mon Sep 17 00:00:00 2001 +From: zhengxiaoxiao +Date: Sun, 15 May 2022 22:00:33 +0800 +Subject: [PATCH] fix return value + +--- + src/host_src/enclave.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/host_src/enclave.c b/src/host_src/enclave.c +index 36a50b9..87a984f 100644 +--- a/src/host_src/enclave.c ++++ b/src/host_src/enclave.c +@@ -196,7 +196,7 @@ cc_enclave_result_t cc_enclave_create(const char *path, enclave_type_t type, uin + if (l_path) { + free(l_path); + } +- return CC_FAIL; ++ return res; + } + + /* to do: gp support enter enclave debugging */ +-- +2.36.0.windows.1 + diff --git a/secGear.spec b/secGear.spec index b6e81d0d9a3b2d243c8b90a9f4034f120871f20b..aea8278bed301cb98332773f2c6e117f210d0339 100644 --- a/secGear.spec +++ b/secGear.spec @@ -1,6 +1,6 @@ Name: secGear Version: 0.1.0 -Release: 26 +Release: 27 Summary: secGear is an SDK to develop confidential computing apps based on hardware enclave features @@ -54,6 +54,7 @@ Patch41: 0042-destroy-rwlock-when-create-enclave-failed.patch Patch42: 0043-fix-partial-resource-leak.patch Patch43: 0044-fix-pointer-without-init-or-check-NULL.patch Patch44: 0045-optimize-the-private-key-usage-of-the-single-step-si.patch +Patch45: 0046-fix-return-value.patch BuildRequires: gcc python automake autoconf libtool BUildRequires: glibc glibc-devel cmake ocaml-dune rpm gcc-c++ @@ -171,6 +172,9 @@ popd systemctl restart rsyslog %changelog +* Sun May 15 2022 zhengxiaoxiao - 0.1.0-27 +* DESC: fix return value + * Thu Mar 24 2022 baizhonggui - 0.1.0-26 * DESC: delete %{dist}