---
 src/simfs.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/simfs.c b/src/simfs.c
index 35045a1..73da80c 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)
-- 
1.7.1.86.g0e460.dirty

_______________________________________________
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono

Reply via email to