summaryrefslogtreecommitdiffstats
path: root/src/stk.c
diff options
context:
space:
mode:
authorAndrzej Zaborowski <andrew.zaborowski@intel.com>2011-02-28 01:58:55 +0100
committerDenis Kenzior <denkenz@gmail.com>2011-02-28 16:14:50 -0600
commit2443cdef495baf59103a5adc39606035cfc535e9 (patch)
treef4b10acae5cce84014f7a963a1675e3f7d182098 /src/stk.c
parentef49d65b70c802deb8f634744a1c108c78a9146d (diff)
downloadofono-2443cdef495baf59103a5adc39606035cfc535e9.tar.bz2
stk: Make sure to reset respond_on_exit
This fixes a crash spotted by Lasse Kunnasluoto documented at http://lists.ofono.org/pipermail/ofono/2011-February/009211.html
Diffstat (limited to 'src/stk.c')
-rw-r--r--src/stk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stk.c b/src/stk.c
index bc46b2ff..c4e988b4 100644
--- a/src/stk.c
+++ b/src/stk.c
@@ -2514,6 +2514,7 @@ static void stk_proactive_command_cancel(struct ofono_stk *stk)
stk_command_free(stk->pending_cmd);
stk->pending_cmd = NULL;
stk->cancel_cmd = NULL;
+ stk->respond_on_exit = FALSE;
}
}