diff --git a/attestation/rac/ka/ka_ca_demo.c b/attestation/rac/ka/ka_ca_demo.c index 499980d018998f92f4c85e3a6f994e990dcbb4a3..a4d780ab6086d652144946f96a7ea88472e88294 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;