simfs: Return from sim_fs_op_check_cached on error

This commit is contained in:
Andrzej Zaborowski 2011-01-29 01:29:18 +01:00 committed by Marcel Holtmann
parent 882c0c2761
commit f2c73f0a52
1 changed files with 3 additions and 1 deletions

View File

@ -600,8 +600,10 @@ static gboolean sim_fs_op_check_cached(struct sim_fs *fs)
fs->fd = fd;
if (error_type != OFONO_ERROR_TYPE_NO_ERROR ||
structure != op->structure)
structure != op->structure) {
sim_fs_op_error(fs);
return TRUE;
}
if (structure == OFONO_SIM_FILE_STRUCTURE_TRANSPARENT) {
if (op->num_bytes == 0)