Merged revisions 287661 via svnmerge from
authorAlec L Davis <sivad.a@paradise.net.nz>
Mon, 20 Sep 2010 22:24:51 +0000 (22:24 +0000)
committerAlec L Davis <sivad.a@paradise.net.nz>
Mon, 20 Sep 2010 22:24:51 +0000 (22:24 +0000)
commit672e1c323fb3dececf9de0e1437e38c861dc8ac8
tree2f14547c0a7eb9c05b4119a3890bba1f1a70ca10
parent2f3dee2379d95ee31c22d7d98882c843d8753b04
Merged revisions 287661 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r287661 | alecdavis | 2010-09-21 10:21:50 +1200 (Tue, 21 Sep 2010) | 14 lines

  ast_do_masquerade. Keep channels ao2_container locked while unlink and linking channels.

  Previously, Masquerade would unlock 'original' and 'clonechan' and allow another masq thread to run.
  End result would be corrupted memory, and the frequent report 'Bad Magic Number'.

  (closes issue #17801,#17710)
  Reported by: notthematrix
  Patches:
        Based on bug17801.diff1.txt uploaded by alecdavis (license 585)
  Tested by: alecdavis

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

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