mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Apply multiple crash fixes, found in issue #11386, but not completely
closing that issue. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@97077 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2635,7 +2635,7 @@ int main(int argc, char *argv[])
|
||||
break;
|
||||
case 'x':
|
||||
ast_set_flag(&ast_options, AST_OPT_FLAG_EXEC);
|
||||
xarg = optarg;
|
||||
xarg = ast_strdupa(optarg);
|
||||
break;
|
||||
case 'C':
|
||||
ast_copy_string(ast_config_AST_CONFIG_FILE, optarg, sizeof(ast_config_AST_CONFIG_FILE));
|
||||
@@ -2657,10 +2657,10 @@ int main(int argc, char *argv[])
|
||||
show_version();
|
||||
exit(0);
|
||||
case 'U':
|
||||
runuser = optarg;
|
||||
runuser = ast_strdupa(optarg);
|
||||
break;
|
||||
case 'G':
|
||||
rungroup = optarg;
|
||||
rungroup = ast_strdupa(optarg);
|
||||
break;
|
||||
case '?':
|
||||
exit(1);
|
||||
|
Reference in New Issue
Block a user