summaryrefslogtreecommitdiff
path: root/src/simutil.c
diff options
context:
space:
mode:
authorJames Prestwood <james.prestwood@linux.intel.com>2018-05-03 15:30:29 -0700
committerDenis Kenzior <denkenz@gmail.com>2018-05-03 17:43:31 -0500
commit19e8d21a7e3bdc4a338a36d42fa4febcb0580fe6 (patch)
treecd97cc4492a0e77780c4c67d9a44e614c828f14d /src/simutil.c
parent37fd1a631d125095d2e4e38356d1bf3771963c73 (diff)
downloadofono-19e8d21a7e3bdc4a338a36d42fa4febcb0580fe6.tar.gz
simutil: fix bug when parsing AID type
Diffstat (limited to 'src/simutil.c')
-rw-r--r--src/simutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simutil.c b/src/simutil.c
index 7a23c977..9287df17 100644
--- a/src/simutil.c
+++ b/src/simutil.c
@@ -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,