[asterisk-commits] crichter: branch 1.2 r44460 - /branches/1.2/channels/chan_misdn.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Oct 5 03:02:39 MST 2006


Author: crichter
Date: Thu Oct  5 05:02:38 2006
New Revision: 44460

URL: http://svn.digium.com/view/asterisk?rev=44460&view=rev
Log:
fixed segfault which happens during hold/transfer action

Modified:
    branches/1.2/channels/chan_misdn.c

Modified: branches/1.2/channels/chan_misdn.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_misdn.c?rev=44460&r1=44459&r2=44460&view=diff
==============================================================================
--- branches/1.2/channels/chan_misdn.c (original)
+++ branches/1.2/channels/chan_misdn.c Thu Oct  5 05:02:38 2006
@@ -2826,7 +2826,7 @@
 {
 	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);



More information about the asterisk-commits mailing list