]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix crash when AMI redirect action redirects two channels out of a bridge.
authorRichard Mudgett <rmudgett@digium.com>
Mon, 22 Apr 2013 16:30:53 +0000 (16:30 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Mon, 22 Apr 2013 16:30:53 +0000 (16:30 +0000)
commitc1c2ae1e5fd4e7e327cbc17fa27b3df5a50701f0
tree3b986180ac1f50fbba2d549df1333ea9ff64a6c6
parenta3a58d9d44cc4c3cbffb627974119e0d39b1e006
Fix crash when AMI redirect action redirects two channels out of a bridge.

The two party bridging loops were changing the bridge peer pointers
without the channel locks held.  Thus when ast_channel_massquerade()
tested and used the pointer there is a small window of opportunity for the
pointers to become NULL even though the masquerade code has the channels
locked.

(closes issue ASTERISK-21356)
Reported by: William luke
Patches:
      jira_asterisk_21356_v11.patch (license #5621) patch uploaded by rmudgett
Tested by: William luke
........

Merged revisions 386256 from http://svn.asterisk.org/svn/asterisk/branches/1.8

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@386286 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/channel.c