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
This commit is contained in:
Andrzej Zaborowski 2011-02-28 01:58:55 +01:00 committed by Denis Kenzior
parent ef49d65b70
commit 2443cdef49
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}
}