]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Blocked revisions 379091
authorMatthew Jordan <mjordan@digium.com>
Tue, 15 Jan 2013 03:47:58 +0000 (03:47 +0000)
committerMatthew Jordan <mjordan@digium.com>
Tue, 15 Jan 2013 03:47:58 +0000 (03:47 +0000)
commiteabe99a23cacfeeec1afdfc8d17f668148b1cfc5
tree626c438aaabc28d723b9394dc0b4952572ac9615
parent992224c9de69a03f8717d5d9b4ee852e6a96071f
Blocked revisions 379091

........
Prevent crash in ConfBridge due to race condition when channels leave bridge

When a channel leaves a bridge, a race condition existed where the
bridge_channel's pvt structure would be accessed after it was disposed of.
This patch prevents that by setting the pointer to the pvt to NULL prior
to disposing of it.

Note that this patch is a backport from Asterisk 10. This particular race
condition was fixed as part of the larger code rework that occurred for that
release.

The solution to this problem was pointed out by Gunnar Harms in ASTERISK-16640.

(closes issue ASTERISK-16640)
Reported by: thomas987

(closes issue ASTERISK-16835)
Reported by: saghul

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