forked from Mirrors/sngrep
Fix a crash in CallFlow when checking new messages
This commit is contained in:
parent
4f2bb67a12
commit
1148564156
@ -127,6 +127,10 @@ call_flow_redraw_required(PANEL *panel, sip_msg_t *msg)
|
||||
if (!(info = call_flow_info(panel)))
|
||||
return -1;
|
||||
|
||||
// Check we have calls in this panel
|
||||
if (!info->group)
|
||||
return -1;
|
||||
|
||||
// Check if the owner of the message is in the displayed group
|
||||
for (i = 0; i < info->group->callcnt; i++) {
|
||||
if (info->group->calls[i] == msg->call) {
|
||||
|
Loading…
Reference in New Issue
Block a user