From 62524571bea7578fe95502cd2a3bdc4449ee6046 Mon Sep 17 00:00:00 2001 From: lixiang_yewu Date: Tue, 2 Jan 2024 01:25:06 +0000 Subject: [PATCH] update attestation/rac/ka/ka_ca_demo.c. Signed-off-by: lixiang_yewu --- attestation/rac/ka/ka_ca_demo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/attestation/rac/ka/ka_ca_demo.c b/attestation/rac/ka/ka_ca_demo.c index 499980d..a4d780a 100644 --- a/attestation/rac/ka/ka_ca_demo.c +++ b/attestation/rac/ka/ka_ca_demo.c @@ -69,7 +69,7 @@ TEEC_Result initialize(TEEC_Context *context, TEEC_Session *session){ ret = TEEC_InitializeContext(NULL, context); if (ret != TEEC_SUCCESS) { printf("teec initial failed!"); - return 0; + return ret; } operation.started = OPERATION_START_FLAG; @@ -83,7 +83,7 @@ TEEC_Result initialize(TEEC_Context *context, TEEC_Session *session){ if (ret != TEEC_SUCCESS) { printf("teec open session failed!"); TEEC_FinalizeContext(context); - return 0; + return ret; } operation.started = OPERATION_START_FLAG; -- Gitee