From dc7fb359cbffb7787d3a03eb76f9460bd1498eb2 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 30 Apr 2019 11:40:17 -0500 Subject: [PATCH] voicecall: Fix possible crash --- src/voicecall.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/voicecall.c b/src/voicecall.c index 7d4f6a11..704c7c6f 100644 --- a/src/voicecall.c +++ b/src/voicecall.c @@ -4021,6 +4021,9 @@ void __ofono_voicecall_tone_cancel(struct ofono_voicecall *vc, int id) if (entry->id == id) break; + if (!entry) + return; + tone_request_finish(vc, entry, 0, FALSE); /*