]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_queue: Crash when transferring 73/1273/1
authorKevin Harwell <kharwell@digium.com>
Thu, 17 Sep 2015 16:31:15 +0000 (11:31 -0500)
committerKevin Harwell <kharwell@digium.com>
Thu, 17 Sep 2015 17:11:38 +0000 (12:11 -0500)
commit63ede41227fbcbedca366cb7f8359629be107a50
tree291b14401b49860842d1b605664a6c48a1c06312
parent0a74c803004c1c7d4d53aecc9e818b63d5a1e9d6
app_queue: Crash when transferring

During some transfer scenarios involving queues Asterisk would sometimes
crash when trying to obtain a channel snapshot (could happen on caller or
member channels). This occurred because the underlying channel had already
disappeared when trying to obtain the latest snapshot.

This patch adds a reference to both the member and caller channels that
extends to the lifetime of the queue'd call, thus making sure the channels
will always exist when retrieving the latest snapshots.

ASTERISK-25185 #close
Reported by: Etienne Lessard

Change-Id: Ic397fa68fb4ff35fbc378e745da9246a7b552128
apps/app_queue.c