mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-15 14:28:24 +00:00
Merged revisions 159402 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r159402 | jpeeler | 2008-11-25 21:18:01 -0600 (Tue, 25 Nov 2008) | 3 lines 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/branches/1.6.1@159403 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2825,10 +2825,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