mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Always parse arguments in park_call_exec so that app_args is valid. This prevents a crash when executing Park from the dialplan with no arguments.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@159402 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2892,10 +2892,8 @@ static int park_call_exec(struct ast_channel *chan, void *data)
|
||||
AST_APP_ARG(options);
|
||||
);
|
||||
|
||||
if (!ast_strlen_zero(data)) {
|
||||
parse = ast_strdupa(data);
|
||||
AST_STANDARD_APP_ARGS(app_args, parse);
|
||||
}
|
||||
parse = ast_strdupa(data);
|
||||
AST_STANDARD_APP_ARGS(app_args, parse);
|
||||
|
||||
ast_copy_string(orig_exten, chan->exten, sizeof(orig_exten));
|
||||
|
||||
|
Reference in New Issue
Block a user