Merged revisions 201450 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Wed, 17 Jun 2009 20:04:12 +0000 (20:04 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 17 Jun 2009 20:04:12 +0000 (20:04 +0000)
commitd8cc968adc2f6281076563e045577af2d8edd610
treeb263df735cc36263e6dd4f789c9736f3fadc9d9b
parent82e4b252303f7922e9a00dd92f677a2ecc241add
Merged revisions 201450 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r201450 | mmichelson | 2009-06-17 14:59:31 -0500 (Wed, 17 Jun 2009) | 9 lines

  Change the datastore traversal in ast_do_masquerade to use a safe list traversal.

  It is possible for datastore fixup functions to remove the datastore from the list
  and free it. In particular, the queue_transfer_fixup in app_queue does this. While
  I don't yet know of this causing any crashes, it certainly could.

  Found while discussing a separate issue with Brian Degenhardt.
........

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