]> git.ipfire.org Git - thirdparty/asterisk.git/commit
bridge.c: NULL app causes crash during attended transfer 34/134/4
authorKevin Harwell <kharwell@digium.com>
Thu, 16 Apr 2015 15:51:50 +0000 (10:51 -0500)
committerKevin Harwell <kharwell@digium.com>
Thu, 16 Apr 2015 21:53:44 +0000 (16:53 -0500)
commit56a2baa21dd1b1ac0af08ae939deaa9a1eecbc5a
treec79b307b2b1d8306344056cb5518ef4d25caf905
parent70c3759c400b7f40c45119f8c6653498b2bc4d54
bridge.c: NULL app causes crash during attended transfer

Due to a race condition there was a chance that during an attended transfer the
channel's application would return NULL. This, of course, would cause a crash
when attempting to access the memory. This patch retrieves the channel's app
at an earlier time in processing in hopes that the app name is available.
However, if it is not then "unknown" is used instead. Since some string value
is now always present the crash can no longer occur.

ASTERISK-24869 #close
Reported by: viniciusfontes
Review: https://gerrit.asterisk.org/#/c/133/

Change-Id: I5134b84c4524906d8148817719d76ffb306488ac
main/bridge.c