summaryrefslogtreecommitdiffstats
path: root/src/simfs.c
diff options
context:
space:
mode:
authorAndrzej Zaborowski <andrew.zaborowski@intel.com>2011-01-29 01:29:18 +0100
committerMarcel Holtmann <marcel@holtmann.org>2011-01-29 18:39:37 +0100
commitf2c73f0a5263d9adf219bd51af8f24333711c31a (patch)
treef1aa2310b143c61b8623ff733ea3e45506471fb3 /src/simfs.c
parent882c0c2761a9b28a2cfb3024170d4c1904b9ae5a (diff)
downloadofono-f2c73f0a5263d9adf219bd51af8f24333711c31a.tar.bz2
simfs: Return from sim_fs_op_check_cached on error
Diffstat (limited to 'src/simfs.c')
-rw-r--r--src/simfs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/simfs.c b/src/simfs.c
index 35045a12..73da80c5 100644
--- a/src/simfs.c
+++ b/src/simfs.c
@@ -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)