Merged revisions 291227 via svnmerge from
authorDavid Vossel <dvossel@digium.com>
Tue, 12 Oct 2010 16:00:06 +0000 (16:00 +0000)
committerDavid Vossel <dvossel@digium.com>
Tue, 12 Oct 2010 16:00:06 +0000 (16:00 +0000)
commita023be409ebcbf0c56523f156494478c29181813
tree7c5fed08b9929104fe1ccec494995983b9cdab32
parent3e6c19a83720785f6305270d3288478d78d8bcd5
Merged revisions 291227 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r291227 | dvossel | 2010-10-12 10:58:56 -0500 (Tue, 12 Oct 2010) | 16 lines

  Fixes manager.c crash.

  This issue was caused by improper use of the mansession lock and
  manession_session lock.  These two structures are confusing to begin
  with so I'm not surprised this occurred.  I fixed this by consistently
  making sure we use each of these locks only to protect the data
  in the corresponding structure.  We had mismatched usage of these
  locks which resulted in no mutual exclusivity occurring at all.

  (closes issue #17994)
  Reported by: vrban
  Patches:
        mansession_locking_fix.diff uploaded by dvossel (license 671)
  Tested by: vrban
........

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