Give sorcery instances a reference to their wizards.
authorMark Michelson <mmichelson@digium.com>
Thu, 27 Mar 2014 14:21:15 +0000 (14:21 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 27 Mar 2014 14:21:15 +0000 (14:21 +0000)
commita8629e53c19774b679a102dc2ee5c11a63583315
treec656ac0bda6610f13f64a176b58b927a19a1764a
parent7dddd694cb0a9c6024cda5099cb8f410eb07ba97
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
........

Merged revisions 411295 from http://svn.asterisk.org/svn/asterisk/branches/12

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