Synchronize

Signed-off-by: kehongxu <kehongxu@huawei.com>
This commit is contained in:
kehongxu 2024-11-20 20:36:10 +08:00
parent bd48e5f9d1
commit bddabc1197

View File

@ -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;