From c9e5c29e9bd491b1b10010e620e09a00ef186292 Mon Sep 17 00:00:00 2001 From: tan-qingliu Date: Wed, 5 Mar 2025 19:01:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=89=80=E6=9C=89=E8=AF=81?= =?UTF-8?q?=E4=B9=A6=E5=BC=82=E5=B8=B8=E5=88=86=E6=94=AF=E4=B8=8D=E5=86=8D?= =?UTF-8?q?=E7=BB=A7=E7=BB=AD=E6=89=A7=E8=A1=8C=EF=BC=8C=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: tan-qingliu Change-Id: Ie7380adfe7a382ccbb2b006ea5ea8e143f57e141 --- .../os_dependency/idl/cm_ipc/cm_ipc_service.c | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/services/cert_manager_standard/cert_manager_service/main/os_dependency/idl/cm_ipc/cm_ipc_service.c b/services/cert_manager_standard/cert_manager_service/main/os_dependency/idl/cm_ipc/cm_ipc_service.c index 5ab82f9..4996b78 100644 --- a/services/cert_manager_standard/cert_manager_service/main/os_dependency/idl/cm_ipc/cm_ipc_service.c +++ b/services/cert_manager_standard/cert_manager_service/main/os_dependency/idl/cm_ipc/cm_ipc_service.c @@ -316,15 +316,19 @@ void CmIpcServiceUninstallAllAppCert(const struct CmBlob *paramSetBlob, struct C int32_t ret = CM_SUCCESS; struct CmContext cmContext = {0}; - ret = CmGetProcessInfoForIPC(&cmContext); - if (ret != CM_SUCCESS) { - CM_LOG_E("CmGetProcessInfoForIPC fail, ret = %d", ret); - } + do { + ret = CmGetProcessInfoForIPC(&cmContext); + if (ret != CM_SUCCESS) { + CM_LOG_E("CmGetProcessInfoForIPC fail, ret = %d", ret); + break; + } - ret = CmRemoveAllAppCert(&cmContext); - if (ret != CM_SUCCESS) { - CM_LOG_E("CmRemoveAllAppCert fail"); - } + ret = CmRemoveAllAppCert(&cmContext); + if (ret != CM_SUCCESS) { + CM_LOG_E("CmRemoveAllAppCert fail"); + break; + } + } while (0); CmReport(__func__, &cmContext, NULL, ret); CmSendResponse(context, ret, NULL); -- Gitee