diff options
author | Duncan Salerno <duncan.salerno@googlemail.com> | 2011-04-07 21:41:41 +0200 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2011-04-07 21:41:41 +0200 |
commit | be4caf7d3eccd7ce819c019159d16d7d65161712 (patch) | |
tree | ea206573961c7f46926fb0382d9a75bb3fd303d5 /src | |
parent | 01b39fe900b3a179db69492a0b2fa4c97b9a67cc (diff) | |
download | strongswan-be4caf7d3eccd7ce819c019159d16d7d65161712.tar.bz2 strongswan-be4caf7d3eccd7ce819c019159d16d7d65161712.tar.xz |
fixed bit mask
Diffstat (limited to 'src')
-rw-r--r-- | src/libcharon/plugins/eap_sim_pcsc/eap_sim_pcsc_card.c | 4 |
1 files 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; } |