From be4caf7d3eccd7ce819c019159d16d7d65161712 Mon Sep 17 00:00:00 2001 From: Duncan Salerno Date: Thu, 7 Apr 2011 21:41:41 +0200 Subject: [PATCH] fixed bit mask --- src/libcharon/plugins/eap_sim_pcsc/eap_sim_pcsc_card.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcharon/plugins/eap_sim_pcsc/eap_sim_pcsc_card.c b/src/libcharon/plugins/eap_sim_pcsc/eap_sim_pcsc_card.c index 4d68ef657..f7003a64b 100644 --- a/src/libcharon/plugins/eap_sim_pcsc/eap_sim_pcsc_card.c +++ b/src/libcharon/plugins/eap_sim_pcsc/eap_sim_pcsc_card.c @@ -70,8 +70,8 @@ static bool decode_imsi_ef(unsigned char *input, int input_len, char *output) return FALSE; } - /* Check type byte is IMSI */ - if ((input[1] & 0xf) != 0x9) + /* Check type byte is IMSI (bottom 3 bits == 001) */ + if ((input[1] & 0x07) != 0x01) { return FALSE; }