aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_dial.c
diff options
context:
space:
mode:
authorrmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b>2010-04-03 01:42:32 +0000
committerrmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b>2010-04-03 01:42:32 +0000
commitfa32b379746e68f554e1b59db0911a2181bfcb75 (patch)
tree4630766342bb882abc69922446fef1dfe65b0e45 /apps/app_dial.c
parentbad7a7d715a44f3b76da44895b4443c50b9ef111 (diff)
Using the Dial application f option when the call is forwarded will likely crash.
Fix app_dial.c:do_forward() OPT_FORCECLID setting cid.cid_num with a stack allocated string instead of a heap allocated string. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@256103 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_dial.c')
-rw-r--r--apps/app_dial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c
index 612efcc64..d4b16a36b 100644
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -835,7 +835,7 @@ static void do_forward(struct chanlist *o,
c->cid.cid_tns = in->cid.cid_tns;
if (ast_test_flag64(o, OPT_FORCECLID)) {
- S_REPLACE(c->cid.cid_num, ast_strdupa(S_OR(in->macroexten, in->exten)));
+ S_REPLACE(c->cid.cid_num, ast_strdup(S_OR(in->macroexten, in->exten)));
S_REPLACE(c->cid.cid_name, NULL);
ast_string_field_set(c, accountcode, c->accountcode);
} else {