mirror of
https://github.com/openharmony/security_device_auth.git
synced 2026-08-25 09:19:33 -04:00
update services/session_manager/src/session/mini_session/mini_session_manager.c.
Signed-off-by: 郑筝 <zhengzheng16@huawei.com>
This commit is contained in:
@@ -157,10 +157,7 @@ int32_t QueryLightSession(int64_t requestId, int32_t osAccountId, LightSession *
|
||||
uint32_t index = 0;
|
||||
LightSessionInfo *entry;
|
||||
FOR_EACH_HC_VECTOR(g_lightSessionInfoList, index, entry) {
|
||||
if (entry == NULL) {
|
||||
continue;
|
||||
}
|
||||
if (entry->session == NULL) {
|
||||
if (entry == NULL || entry->session == NULL) {
|
||||
continue;
|
||||
}
|
||||
if (requestId == entry->session->requestId && osAccountId == entry->session->osAccountId) {
|
||||
|
||||
Reference in New Issue
Block a user