simutil: fix bug when parsing AID type

This commit is contained in:
James Prestwood 2018-05-03 15:30:29 -07:00 committed by Denis Kenzior
parent 37fd1a631d
commit 19e8d21a7e
1 changed files with 1 additions and 1 deletions

View File

@ -1576,7 +1576,7 @@ GSList *sim_parse_app_template_entries(const unsigned char *buffer, int len)
memcpy(app.aid, aid, app.aid_len);
app.type = (app.aid[5] << 8) & app.aid[6];
app.type = (app.aid[5] << 8) | app.aid[6];
/* Find the label (optional) */
label = ber_tlv_find_by_tag(dataobj, 0x50, dataobj_len,