!119 bug fix: wrong check logic

Merge pull request !119 from 符子坤/master
This commit is contained in:
openharmony_ci
2021-12-18 07:36:46 +00:00
committed by Gitee
@@ -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;
}