diff options
author | Denis Kenzior <denkenz@gmail.com> | 2019-04-30 11:40:17 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2019-04-30 11:40:17 -0500 |
commit | dc7fb359cbffb7787d3a03eb76f9460bd1498eb2 (patch) | |
tree | d42054a74cf4a19ea186c6e856c23288266c5caa /src | |
parent | 408d063f85f30d22af73234b20fb7216e7339b02 (diff) | |
download | ofono-dc7fb359cbffb7787d3a03eb76f9460bd1498eb2.tar.gz |
voicecall: Fix possible crash
Diffstat (limited to 'src')
-rw-r--r-- | src/voicecall.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); /* |