From f2c73f0a5263d9adf219bd51af8f24333711c31a Mon Sep 17 00:00:00 2001 From: Andrzej Zaborowski Date: Sat, 29 Jan 2011 01:29:18 +0100 Subject: [PATCH] simfs: Return from sim_fs_op_check_cached on error --- src/simfs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)