From ee527e5ea4330c8a5a9f6201181040f25ea10fab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=8C=E8=90=8C=E8=90=8C=E6=96=B0?= Date: Wed, 16 Apr 2025 15:35:10 +0800 Subject: [PATCH] fix invalid null judgment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 萌萌萌新 --- frameworks/cj/src/crypto_ffi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/cj/src/crypto_ffi.cpp b/frameworks/cj/src/crypto_ffi.cpp index cf19382..2ff7183 100644 --- a/frameworks/cj/src/crypto_ffi.cpp +++ b/frameworks/cj/src/crypto_ffi.cpp @@ -626,7 +626,7 @@ namespace OHOS { } auto keyInstance = FFIData::GetData(symKeyId); - if (!instance) { + if (!keyInstance) { LOGE("[MAC] SymKeyImpl instance not exist."); return HCF_ERR_MALLOC; } -- Gitee