summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/simutil.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/simutil.c b/src/simutil.c
index 9013460e..edd7de88 100644
--- a/src/simutil.c
+++ b/src/simutil.c
@@ -1589,6 +1589,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];