Hot-unplugging isimodem causes a crash in the voicecall atom.
---
src/voicecall.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/voicecall.c b/src/voicecall.c
index 6ad58ad..52311b9 100644
--- a/src/voicecall.c
+++ b/src/voicecall.c
@@ -220,6 +220,9 @@ static void dial_request_finish(struct ofono_voicecall *vc, gboolean
callback)
{
struct dial_request *dial_req = vc->dial_req;
+ if (!dial_req)
+ return;
+
if (callback && dial_req->cb)
dial_req->cb(dial_req->call ? dial_req->call->call : NULL,
dial_req->user_data);
--
1.7.0.4
Show replies by date