enum ofono_sim_file_structure structure;
int record_length;
- if (imsi == NULL || op->info_only == TRUE)
+ if (imsi == NULL || phase == OFONO_SIM_PHASE_UNKNOWN ||
+ op->info_only == TRUE)
return FALSE;
path = g_strdup_printf(SIM_CACHE_PATH, imsi, phase, op->id);
return NULL;
phase = ofono_sim_get_phase(fs->sim);
+ if (phase == OFONO_SIM_PHASE_UNKNOWN)
+ return NULL;
+
path = g_strdup_printf(SIM_IMAGE_CACHE_PATH, imsi, phase, id);
TFR(stat(path, &st_buf));
int len;
char *path;
+ if (imsi == NULL || phase == OFONO_SIM_PHASE_UNKNOWN)
+ return;
+
if (read_file(&version, 1, SIM_CACHE_VERSION, imsi, phase) == 1)
if (version == SIM_FS_VERSION)
return;