* [PATCH] simutil: fix bug when parsing AID type
@ 2018-05-03 22:30 James Prestwood
2018-05-03 22:43 ` Denis Kenzior
0 siblings, 1 reply; 2+ messages in thread
From: James Prestwood @ 2018-05-03 22:30 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 550 bytes --]
---
src/simutil.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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,
--
2.17.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] simutil: fix bug when parsing AID type
2018-05-03 22:30 [PATCH] simutil: fix bug when parsing AID type James Prestwood
@ 2018-05-03 22:43 ` Denis Kenzior
0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2018-05-03 22:43 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 191 bytes --]
Hi James,
On 05/03/2018 05:30 PM, James Prestwood wrote:
> ---
> src/simutil.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Applied, thanks.
Regards,
-Denis
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-05-03 22:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-03 22:30 [PATCH] simutil: fix bug when parsing AID type James Prestwood
2018-05-03 22:43 ` Denis Kenzior
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.