mirror of git://git.sysmocom.de/ofono
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:
parent
ef49d65b70
commit
2443cdef49
|
@ -2514,6 +2514,7 @@ static void stk_proactive_command_cancel(struct ofono_stk *stk)
|
||||||
stk_command_free(stk->pending_cmd);
|
stk_command_free(stk->pending_cmd);
|
||||||
stk->pending_cmd = NULL;
|
stk->pending_cmd = NULL;
|
||||||
stk->cancel_cmd = NULL;
|
stk->cancel_cmd = NULL;
|
||||||
|
stk->respond_on_exit = FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue