sim: use mask for check of sim file status

It is the first bit of the sim file status who indicates if a file
is valid or not. So a mask must be used to check this.
This commit is contained in:
Guillaume Lucas 2010-11-05 13:05:05 +00:00 committed by Denis Kenzior
parent ec34a6f525
commit aa2c87886f
1 changed files with 2 additions and 2 deletions

View File

@ -1290,7 +1290,7 @@ static void sim_efbdn_info_read_cb(int ok, unsigned char file_status,
if (!ok)
goto out;
if (file_status == SIM_FILE_STATUS_VALID)
if (file_status & SIM_FILE_STATUS_VALID)
sim_bdn_enabled(sim);
out:
@ -1327,7 +1327,7 @@ static void sim_efadn_info_read_cb(int ok, unsigned char file_status,
if (!ok)
goto out;
if (file_status != SIM_FILE_STATUS_VALID)
if (!(file_status & SIM_FILE_STATUS_VALID))
sim_fdn_enabled(sim);
out: