From 91394f19abb7d7f5863bbf3c44a7ef83f0616ee6 Mon Sep 17 00:00:00 2001 From: houmingyong Date: Fri, 2 Jun 2023 15:47:33 +0800 Subject: [PATCH] local attest verify input hash pointer --- component/local_attest/sg_local_attest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component/local_attest/sg_local_attest.c b/component/local_attest/sg_local_attest.c index f94473e..3e612cf 100644 --- a/component/local_attest/sg_local_attest.c +++ b/component/local_attest/sg_local_attest.c @@ -14,7 +14,7 @@ cc_enclave_result_t cc_local_attest(char *taid, char *img_hash, char *mem_hash) { - if (taid == NULL || (img_hash == NULL && mem_hash == NULL)) { + if (taid == NULL || img_hash == NULL || mem_hash == NULL) { return CC_ERROR_BAD_PARAMETERS; } -- 2.33.0