[Asterisk-cvs] asterisk/apps app_chanisavail.c,1.3,1.4

citats at lists.digium.com citats at lists.digium.com
Sun Feb 29 13:40:49 CST 2004


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

Modified Files:
	app_chanisavail.c 
Log Message:
Fix app_chanisavail if there are invalid arguments (bug #1130)


Index: app_chanisavail.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_chanisavail.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- app_chanisavail.c	8 Apr 2003 19:14:03 -0000	1.3
+++ app_chanisavail.c	29 Feb 2004 18:30:48 -0000	1.4
@@ -76,8 +76,8 @@
 			tech = cur;
 			number = strchr(tech, '/');
 			if (!number) {
-				ast_log(LOG_WARNING, "ChanIsAvail argument takes format (Zap/[device])\n");
-				continue;
+				ast_log(LOG_WARNING, "ChanIsAvail argument takes format ([technology]/[device])\n");
+				return -1;
 			}
 			*number = '\0';
 			number++;




More information about the svn-commits mailing list