]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Give sorcery instances a reference to their wizards.
authorMark Michelson <mmichelson@digium.com>
Thu, 27 Mar 2014 14:20:10 +0000 (14:20 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 27 Mar 2014 14:20:10 +0000 (14:20 +0000)
commite8c1b4f2b0c93e5bdd06cf6addf8e6494aca27d8
tree4a1bae943530053a379d041fa73955dbd8a72eb7
parent017d40c2b247868c6bb362d10121934921191a62
Give sorcery instances a reference to their wizards.

On graceful shutdown, sorcery wizards are all killed off, but it is
possible for sorcery instances to still have dangling pointers after
this, possibly causing a crash. Giving the sorcery instances a reference
to their wizards ensures that the wizard reference will remain valid for
the lifetime of the sorcery instance.

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@411295 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/sorcery.c