mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
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
This commit is contained in:
@@ -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++;
|
||||
|
Reference in New Issue
Block a user