[asterisk-commits] file: branch 12 r412882 - /branches/12/res/stasis/app.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Apr 22 05:09:10 CDT 2014


Author: file
Date: Tue Apr 22 05:09:03 2014
New Revision: 412882

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=412882
Log:
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

Modified:
    branches/12/res/stasis/app.c

Modified: branches/12/res/stasis/app.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/res/stasis/app.c?view=diff&rev=412882&r1=412881&r2=412882
==============================================================================
--- branches/12/res/stasis/app.c (original)
+++ branches/12/res/stasis/app.c Tue Apr 22 05:09:03 2014
@@ -649,7 +649,7 @@
 	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);
 	}
 }




More information about the asterisk-commits mailing list