Skip to content

Commit

Permalink
[sim-auth] Fill unused part of AID with FFs
Browse files Browse the repository at this point in the history
  • Loading branch information
monich committed May 30, 2021
1 parent 1116ca2 commit d7e7403
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ofono/src/simutil.c
Expand Up @@ -1583,6 +1583,7 @@ GSList *sim_parse_app_template_entries(const unsigned char *buffer, int len)
goto error;

memcpy(app.aid, aid, app.aid_len);
memset(app.aid + app.aid_len, 0xff, 16 - app.aid_len);

app.type = (app.aid[5] << 8) | app.aid[6];

Expand Down

0 comments on commit d7e7403

Please sign in to comment.