Merged revisions 97077 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r97077 | tilghman | 2008-01-08 12:02:13 -0600 (Tue, 08 Jan 2008) | 3 lines

Apply multiple crash fixes, found in issue #11386, but not completely
closing that issue.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97125 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Tilghman Lesher
2008-01-08 19:06:27 +00:00
parent fb2aef67b9
commit 3ad9a66e0f
2 changed files with 146 additions and 83 deletions

View File

@@ -2788,7 +2788,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(cfg_paths.config_file, optarg, sizeof(cfg_paths.config_file));
@@ -2810,10 +2810,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 's':
remotesock = optarg;