[Asterisk-cvs] asterisk/channels chan_zap.c,1.449,1.450

mattf at lists.digium.com mattf at lists.digium.com
Mon May 23 13:03:11 CDT 2005


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

Modified Files:
	chan_zap.c 
Log Message:
Bug in pri_find_principle


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.449
retrieving revision 1.450
diff -u -d -r1.449 -r1.450
--- chan_zap.c	23 May 2005 16:56:06 -0000	1.449
+++ chan_zap.c	23 May 2005 17:07:32 -0000	1.450
@@ -7337,7 +7337,9 @@
 	
 	if (!PRI_EXPLICIT(channel)) {
 		spanfd = pri_active_dchan_fd(pri);
-		span = ioctl(spanfd, ZT_GET_PARAMS, &param);
+		if (ioctl(spanfd, ZT_GET_PARAMS, &param))
+			return -1;
+		span = param.spanno - 1;
 	}
 
 	for (x=0;x<pri->numchans;x++) {




More information about the svn-commits mailing list