]> git.ipfire.org Git - thirdparty/asterisk.git/commit
manager: Protect data structures during shutdown.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 24 Jan 2014 17:54:18 +0000 (17:54 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 24 Jan 2014 17:54:18 +0000 (17:54 +0000)
commit11d4a03d75fde424b60bfc88022ae9636a15b736
tree2a0b09a5f0ef85c15cb36c789d93f7cdeda659ef
parentb072381fb5cd1996fdbbb55569772c7b4d1579bf
manager: Protect data structures during shutdown.

Occasionally, the manager module would get an "INTERNAL_OBJ: bad magic
number" error on a "core restart gracefully" command if an AMI connection
is established.

* Added ao2_global_obj protection to the sessions global container.

* Fixed the order of unreferencing a session object in session_destroy().

* Removed unnecessary container traversals of the white/black filters
during session_destructor().

(closes issue AST-1242)
Reported by: Guenther Kelleter

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

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