Skip to content
Snippets Groups Projects
Commit a45394d3 authored by Olle Johansson's avatar Olle Johansson
Browse files

Issue #6383 - Crash on CLI originate with missing channel argument

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9065 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent a16ae226
Branches
Tags
No related merge requests found
...@@ -83,6 +83,10 @@ static int orig_app(const char *chan, const char *app, const char *appdata) ...@@ -83,6 +83,10 @@ static int orig_app(const char *chan, const char *app, const char *appdata)
return RESULT_FAILURE; return RESULT_FAILURE;
} }
chantech = strsep(&chandata, "/"); chantech = strsep(&chandata, "/");
if (!chandata) {
ast_log(LOG_ERROR, "No dial string.\n");
return RESULT_SHOWUSAGE;
}
ast_pbx_outgoing_app(chantech, AST_FORMAT_SLINEAR, chandata, TIMEOUT * 1000, app, appdata, &reason, 1, NULL, NULL, NULL, NULL); ast_pbx_outgoing_app(chantech, AST_FORMAT_SLINEAR, chandata, TIMEOUT * 1000, app, appdata, &reason, 1, NULL, NULL, NULL, NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment