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:
Tilghman Lesher
2008-01-08 18:02:13 +00:00
parent 9aa3d2dd7f
commit 1b289c2998
2 changed files with 150 additions and 92 deletions

View File

@@ -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);