From 9b71a87108e8547f2bd02e5d685cd502bf4e822a Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Tue, 22 Apr 2014 10:09:36 +0000 Subject: res_stasis: Fix crash when handling a failed blind transfer message. This changes fixes a crash that occurs when stasis determines if it should send a message out to an application or not. The code incorrectly assumed that a bridge snapshot would always be present when in reality for failure cases it may not be. ASTERISK-23573 #close ........ Merged revisions 412882 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@412883 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/stasis/app.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'res/stasis/app.c') diff --git a/res/stasis/app.c b/res/stasis/app.c index d9eef4c66..9fcf848e6 100644 --- a/res/stasis/app.c +++ b/res/stasis/app.c @@ -649,7 +649,7 @@ static void bridge_blind_transfer_handler(void *data, struct stasis_subscription struct ast_bridge_blob *blob = stasis_message_data(message); if (bridge_app_subscribed(app, blob->channel->uniqueid) || - bridge_app_subscribed_involved(app, blob->bridge)) { + (blob->bridge && bridge_app_subscribed_involved(app, blob->bridge))) { stasis_publish(app->topic, message); } } -- cgit v1.2.3