mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 15:49:56 +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;
|
tech = cur;
|
||||||
number = strchr(tech, '/');
|
number = strchr(tech, '/');
|
||||||
if (!number) {
|
if (!number) {
|
||||||
ast_log(LOG_WARNING, "ChanIsAvail argument takes format (Zap/[device])\n");
|
ast_log(LOG_WARNING, "ChanIsAvail argument takes format ([technology]/[device])\n");
|
||||||
continue;
|
return -1;
|
||||||
}
|
}
|
||||||
*number = '\0';
|
*number = '\0';
|
||||||
number++;
|
number++;
|
||||||
|
|||||||
Reference in New Issue
Block a user