]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
fixed bit mask
authorDuncan Salerno <duncan.salerno@googlemail.com>
Thu, 7 Apr 2011 19:41:41 +0000 (21:41 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 7 Apr 2011 19:41:41 +0000 (21:41 +0200)
src/libcharon/plugins/eap_sim_pcsc/eap_sim_pcsc_card.c

index 4d68ef657a92ebbbb8d6ed2b003a534fda4b0229..f7003a64b6e877531f5b4391d5d55b1687034bdf 100644 (file)
@@ -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;
        }