[Asterisk-cvs] asterisk/channels chan_iax2.c,1.188,1.188.2.1

russell at lists.digium.com russell at lists.digium.com
Thu Sep 30 18:45:20 CDT 2004


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv24042/channels

Modified Files:
      Tag: v1-0
	chan_iax2.c 
Log Message:
Fix seg fault with IAX native bridging (bug #2550)


Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.188
retrieving revision 1.188.2.1
diff -u -d -r1.188 -r1.188.2.1
--- chan_iax2.c	19 Sep 2004 17:21:26 -0000	1.188
+++ chan_iax2.c	30 Sep 2004 22:47:32 -0000	1.188.2.1
@@ -2628,8 +2628,10 @@
 		cs[1] = cs[2];
 	}
 	lock_both(callno0, callno1);
-	iaxs[callno0]->bridgecallno = 0;
-	iaxs[callno1]->bridgecallno = 0;
+	if(iaxs[callno0])
+		iaxs[callno0]->bridgecallno = 0;
+	if(iaxs[callno1])
+		iaxs[callno1]->bridgecallno = 0;
 	unlock_both(callno0, callno1);
 	return res;
 }




More information about the svn-commits mailing list