From 01608196cf7ef5c9840f3e7cc766adf28980a3f6 Mon Sep 17 00:00:00 2001 From: fuzikun Date: Thu, 9 Dec 2021 11:58:53 +0800 Subject: [PATCH] bug fix: wrong check logic Signed-off-by: fuzikun --- services/authenticators/src/account_unrelated/task_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/authenticators/src/account_unrelated/task_main.c b/services/authenticators/src/account_unrelated/task_main.c index 2c483c8..607d0aa 100644 --- a/services/authenticators/src/account_unrelated/task_main.c +++ b/services/authenticators/src/account_unrelated/task_main.c @@ -487,7 +487,7 @@ int32_t GetPublicKeyInTask(const char *pkgName, const char *serviceType, Uint8Bu FOR_EACH_HC_VECTOR(g_protocolTypeVec, index, ptr) { if (ptr != NULL && (*ptr) != NULL) { DasProtocolType *temp = (DasProtocolType *)(*ptr); - if ((temp->tokenManagerInstance == NULL) || (temp->tokenManagerInstance->deletePeerAuthInfo == NULL)) { + if ((temp->tokenManagerInstance == NULL) || (temp->tokenManagerInstance->getPublicKey == NULL)) { LOGD("Protocol type: %d, unsupported method!", temp->type); continue; }