Skip to content
Snippets Groups Projects
Commit b32c6901 authored by James Golovich's avatar James Golovich
Browse files

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
parent 064d7ffd
No related branches found
No related tags found
No related merge requests found
......@@ -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++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment