From: James Golovich Date: Sun, 29 Feb 2004 18:30:48 +0000 (+0000) Subject: Fix app_chanisavail if there are invalid arguments (bug #1130) X-Git-Tag: 1.0.0-rc1~1025 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b32c690175899cfb89a3b8b94de3bcaefc83f191;p=thirdparty%2Fasterisk.git Fix app_chanisavail if there are invalid arguments (bug #1130) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2277 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_chanisavail.c b/apps/app_chanisavail.c index 57f6e6ff0f..44a2a23b3e 100755 --- a/apps/app_chanisavail.c +++ b/apps/app_chanisavail.c @@ -76,8 +76,8 @@ static int chanavail_exec(struct ast_channel *chan, void *data) 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++;