mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 11:58:40 +00:00
Don't crash if no arguments are passed.
(closes issue #16119) Reported by: thedavidfactor git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@228015 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -373,6 +373,11 @@ static int app_exec(struct ast_channel *chan, const char *data)
|
|||||||
u->abort_current_sound = 0;
|
u->abort_current_sound = 0;
|
||||||
u->chan = chan;
|
u->chan = chan;
|
||||||
|
|
||||||
|
if (ast_strlen_zero(data)) {
|
||||||
|
ast_log(LOG_WARNING, "ExternalIVR requires a command to execute\n");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
buf = ast_strdupa(data);
|
buf = ast_strdupa(data);
|
||||||
AST_STANDARD_APP_ARGS(eivr_args, buf);
|
AST_STANDARD_APP_ARGS(eivr_args, buf);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user