Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[sim] Fixed AID comparison. JB#54048
It worked only because aid was the first field in the struct.
  • Loading branch information
monich committed Jun 3, 2021
1 parent edd91c9 commit cfb75f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ofono/src/sim.c
Expand Up @@ -3823,7 +3823,7 @@ struct ofono_sim_aid_session *__ofono_sim_get_session_by_aid(
struct ofono_sim_aid_session *session = iter->data;

if (session->record->aid.len == aid->len &&
!memcmp(session->record->aid.aid, aid, aid->len))
!memcmp(session->record->aid.aid, aid->aid, aid->len))
return session;

iter = g_slist_next(iter);
Expand Down

0 comments on commit cfb75f4

Please sign in to comment.