Merged revisions 168628 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Thu, 15 Jan 2009 00:14:17 +0000 (00:14 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 15 Jan 2009 00:14:17 +0000 (00:14 +0000)
commitb9060d4435f8fad59c88c4f4c4f343d05efa003a
tree666f12e6eb5160a2a77e7eea2b82625401234ec7
parent803a9203d5a4a5c67d4f332d636a04c84dd9f849
Merged revisions 168628 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r168628 | mmichelson | 2009-01-14 18:11:01 -0600 (Wed, 14 Jan 2009) | 16 lines

Fix some crashes from bad datastore handling in app_queue.c

* The queue_transfer_fixup function was searching for and removing
  the datastore from the incorrect channel, so this was fixed.

* Most datastore operations regarding the queue_transfer datastore
  were being done without the channel locked, so proper channel locking
  was added, too.

(closes issue #14086)
Reported by: ZX81
Patches:
      14086v2.patch uploaded by putnopvut (license 60)
Tested by: ZX81, festr

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@168629 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_queue.c