aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-10 20:17:11 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-10 20:17:11 +0000
commit4490fc96f5a236f3b7bc244bf9ccae0c3348b986 (patch)
tree1a6b1d7629b928686f053df314bd0601596d174c
parenta17a34aaa02ec4c034e9e1d268ee4025ad417bd1 (diff)
Fix another bug specifically related to asynchronous call origination. Once the
PBX is started on the channel using ast_pbx_start(), then the ownership of the channel has been passed on to another thread. We can no longer access it in this code. If the channel gets hung up very quickly, it is possible that we could access a channel that has been free'd. (inspired by BE-386) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@107161 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/pbx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 728e40170..669ca7d71 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -5027,9 +5027,9 @@ int ast_pbx_outgoing_exten(const char *type, int format, void *data, int timeout
ast_channel_unlock(chan);
}
ast_hangup(chan);
- chan = NULL;
res = -1;
}
+ chan = NULL;
}
} else {
if (option_verbose > 3)