mirror of
https://github.com/openharmony/security_deviceauth.git
synced 2026-07-19 15:37:11 -04:00
!119 bug fix: wrong check logic
Merge pull request !119 from 符子坤/master
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user