fixed segfault which happens during hold/transfer action

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@44460 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2
Christian Richter 19 years ago
parent a8c86fb9b2
commit 8684599f6c

@ -2826,7 +2826,7 @@ static struct chan_list *find_chan_by_pid(struct chan_list *list, int pid)
{
struct chan_list *help=list;
for (;help; help=help->next) {
if (help->bc->pid == pid) return help;
if ( help->bc && (help->bc->pid == pid) ) return help;
}
chan_misdn_log(6, 0, "$$$ find_chan: No channel found for pid:%d\n",pid);

Loading…
Cancel
Save