From 42caaed426b8c2bded6acae1ab0ad2e3c7e99586 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Mon, 10 Mar 2008 20:17:11 +0000 Subject: [PATCH] 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: https://origsvn.digium.com/svn/asterisk/branches/1.4@107161 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/pbx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/pbx.c b/main/pbx.c index 728e40170b..669ca7d71c 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) -- 2.47.3