fixed bit mask

This commit is contained in:
Duncan Salerno
2011-04-07 21:41:41 +02:00
committed by Andreas Steffen
parent 01b39fe900
commit be4caf7d3e
@@ -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;
}