]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Give zombies a safe channel driver to use.
authorRichard Mudgett <rmudgett@digium.com>
Wed, 25 May 2011 16:23:11 +0000 (16:23 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 25 May 2011 16:23:11 +0000 (16:23 +0000)
commitaa64eb10778abb85b7d7bc8bafacfc9d577513b4
tree3eb6d61e1cd3861b980a7f6ec1a1d44e052c54fa
parent5427820aaf3fe60540946cc5cb90d17659e33993
Give zombies a safe channel driver to use.

Recent crashes from zombie channels suggests that they need a safe home to
goto.  When a masquerade happens, the physical part of the zombie channel
is hungup.  The hangup normally sets the channel private pointer to NULL.
If someone then blindly does a callback to the channel driver, a crash is
likely because the private pointer is NULL.

The masquerade now sets the channel technology of zombie channels to the
kill channel driver.

Related to the following issues:
(issue #19116)
(issue #19310)

Review: https://reviewboard.asterisk.org/r/1224/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@320796 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/channel.h
main/channel.c
main/features.c