[Asterisk-cvs] asterisk/channels chan_zap.c,1.434,1.435

kpfleming at lists.digium.com kpfleming at lists.digium.com
Sun May 1 14:40:54 CDT 2005


Update of /usr/cvsroot/asterisk/channels
In directory localhost.localdomain:/tmp/cvs-serv22076/channels

Modified Files:
	chan_zap.c 
Log Message:
properly check for error from pri_timer2idx (bug #4117)


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.434
retrieving revision 1.435
diff -u -d -r1.434 -r1.435
--- chan_zap.c	29 Apr 2005 17:00:33 -0000	1.434
+++ chan_zap.c	1 May 2005 18:47:53 -0000	1.435
@@ -10085,7 +10085,7 @@
 					if (!timer)
 						ast_log(LOG_WARNING, "'%s' is not a valid value for an ISDN timer\n", timerc);
 					else {
-						if ((timeridx = pri_timer2idx(timerc)))
+						if ((timeridx = pri_timer2idx(timerc)) >= 0)
 							pritimers[timeridx] = timer;
 						else
 							ast_log(LOG_WARNING, "'%s' is not a valid ISDN timer\n", timerc);




More information about the svn-commits mailing list