diff options
author | Matthew Jordan <mjordan@digium.com> | 2014-10-27 02:27:23 +0000 |
---|---|---|
committer | Matthew Jordan <mjordan@digium.com> | 2014-10-27 02:27:23 +0000 |
commit | f3fbcc550ed1a9bd1aa59a9970a6f0103a73627f (patch) | |
tree | 469126b7c8b5cad7a1be9ac22131743a41d7fe8c /sounds | |
parent | 775640f658ca0f98ecd2e7b14a20a67a8072c7cc (diff) |
res/res_phoneprov: Fix crash on shutdown caused by container cleanup
In res_phoneprov, unloading the module first destroys the http_routes
container, followed by the users. However, users may have a route in
the http_routes container; the validity of this container is not checked
in the users destructor. Hence, we hit an assert as the container has already
been set to NULL.
This patch does two things:
(1) It adds a sanity check in the user destructor (because why not)
(2) It switches the order of destruction, so that users are disposed of prior
to the HTTP routes they may hold a reference to.
Note that this crash was caught by the Test Suite (go go testing!)
........
Merged revisions 426174 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@426176 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'sounds')
0 files changed, 0 insertions, 0 deletions