]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 44460 via svnmerge from
authorChristian Richter <christian.richter@beronet.com>
Fri, 6 Oct 2006 12:53:41 +0000 (12:53 +0000)
committerChristian Richter <christian.richter@beronet.com>
Fri, 6 Oct 2006 12:53:41 +0000 (12:53 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r44460 | crichter | 2006-10-05 12:02:38 +0200 (Do, 05 Okt 2006) | 1 line

fixed segfault which happens during hold/transfer action
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44563 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_misdn.c

index 20000b057725a3837f1fbe6ea87b3189e6969d10..76b4165bc5bb3d8ddc1ee1c8f934abc7bb73c2ed 100644 (file)
@@ -3164,7 +3164,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);