diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-03-10 20:17:37 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-03-10 20:17:37 +0000 |
commit | e5a1a4523401a30ddc9d257efbb0ca6adb7908d3 (patch) | |
tree | aca211362dc5f6120223644e345ee200b057e642 | |
parent | 8948f4573a5a0587fd8f9e84f0028025ba3e74f8 (diff) |
Merged revisions 107161 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r107161 | russell | 2008-03-10 15:17:11 -0500 (Mon, 10 Mar 2008) | 8 lines
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/trunk@107162 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | main/pbx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c index 9050c55fa..2e3260a34 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -6545,9 +6545,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 { ast_verb(4, "Channel %s was never answered.\n", chan->name); |