mirror of
https://gitee.com/openharmony/security_device_auth
synced 2024-11-23 07:40:02 +00:00
Synchronize
Signed-off-by: kehongxu <kehongxu@huawei.com>
This commit is contained in:
parent
bd48e5f9d1
commit
bddabc1197
@ -566,7 +566,12 @@ int32_t AuthOnNextGroupIfExist(CompatibleAuthSubSession *session)
|
||||
if (res != HC_SUCCESS) {
|
||||
LOGW("Failed to auth on current group, try to auth on next group!");
|
||||
DestroyTask(session->base.curTaskId, GetAuthModuleType(paramInNextSession));
|
||||
res = ProcessClientAuthError(session, outNext);
|
||||
// return HC_SUCCESS if the next group auth successfully,
|
||||
// return previous res otherwise.
|
||||
if (ProcessClientAuthError(session, outNext) == HC_SUCCESS) {
|
||||
FreeJson(outNext);
|
||||
return HC_SUCCESS;
|
||||
}
|
||||
}
|
||||
FreeJson(outNext);
|
||||
return res;
|
||||
|
Loading…
Reference in New Issue
Block a user