]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
automerge commit
authorAutomerge script <automerge@asterisk.org>
Thu, 5 Oct 2006 11:00:47 +0000 (11:00 +0000)
committerAutomerge script <automerge@asterisk.org>
Thu, 5 Oct 2006 11:00:47 +0000 (11:00 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@44464 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_misdn.c

index de116768291f40f08822c90589923115ac21d05b..b6280ce0b47645e5dda08d6326eb04ed00046426 100644 (file)
@@ -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);