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

citats at lists.digium.com citats at lists.digium.com
Sun Feb 29 13:42:04 CST 2004


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

Modified Files:
      Tag: v1-0_stable
	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.3.2.1
diff -u -d -r1.3 -r1.3.2.1
--- app_chanisavail.c	8 Apr 2003 19:14:03 -0000	1.3
+++ app_chanisavail.c	29 Feb 2004 18:32:03 -0000	1.3.2.1
@@ -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