voicecall: Fix possible crash

This commit is contained in:
Denis Kenzior 2019-04-30 11:40:17 -05:00
parent 408d063f85
commit dc7fb359cb
1 changed files with 3 additions and 0 deletions

View File

@ -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);
/*