summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2012-11-22 06:47:23 -0600
committerDenis Kenzior <denkenz@gmail.com>2012-11-22 06:50:08 -0600
commitdfd1fae50b8197b0b4ed81fed3139726e4ae1bf5 (patch)
treef302d0289d95841159e914b453222dfbd1910321 /src
parent9d9ae3af28fcf3572551630a0bef160f001a6987 (diff)
downloadofono-dfd1fae50b8197b0b4ed81fed3139726e4ae1bf5.tar.bz2
stk: Fix crash in SIM refresh handling
Diffstat (limited to 'src')
-rw-r--r--src/stk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stk.c b/src/stk.c
index 9b29d229..202d9917 100644
--- a/src/stk.c
+++ b/src/stk.c
@@ -2284,7 +2284,7 @@ static gboolean handle_command_refresh(const struct stk_command *cmd,
g_slist_foreach(file_list, (GFunc) g_free, NULL);
g_slist_free(file_list);
- return FALSE;
+ return TRUE;
}
rsp->result.type = STK_RESULT_TYPE_NOT_CAPABLE;
@@ -3015,7 +3015,7 @@ void ofono_stk_proactive_command_handled_notify(struct ofono_stk *stk,
break;
case STK_COMMAND_TYPE_REFRESH:
- handle_command_refresh(stk->pending_cmd, NULL, stk);
+ ok = handle_command_refresh(stk->pending_cmd, NULL, stk);
break;
}