diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-21 11:07:30 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-21 11:07:30 +0000 |
commit | eb492ff8127c1c4480e73fb841023d35bc87c34c (patch) | |
tree | aa4abeea80d44832a730fcb846278e370ea99d07 /apps/app_dial.c | |
parent | 51994071687cc5e63841c88c384563373665b800 (diff) |
do not ast_hangup() on a NULL channel.
In the original code this would happen in the case of
o->forwards >= AST_MAX_FORWARDS
Likely an 1.2/1.4 isse as well - please someone have a look,
while I am hunting a few more similar panics now.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47880 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_dial.c')
-rw-r--r-- | apps/app_dial.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c index c3cc26243..6c1501b63 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -505,9 +505,9 @@ static void do_forward(struct dial_localuser *o, ast_set_callerid(c, S_OR(in->macroexten, in->exten), get_cid_name(cidname, sizeof(cidname), in), NULL); } } + /* Hangup the original channel now, in case we needed it */ + ast_hangup(c); } - /* Hangup the original channel now, in case we needed it */ - ast_hangup(c); } /* argument used for some functions. */ |