dect
/
asterisk
Archived
13
0
Fork 0

Don't crash if no arguments are passed.

(closes issue #16119)
 Reported by: thedavidfactor


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@228015 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
tilghman 2009-11-05 17:08:02 +00:00
parent 620b29df72
commit 2d94b4609d
1 changed files with 5 additions and 0 deletions

View File

@ -373,6 +373,11 @@ static int app_exec(struct ast_channel *chan, const char *data)
u->abort_current_sound = 0;
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);
AST_STANDARD_APP_ARGS(eivr_args, buf);