[asterisk-commits] file: trunk r412883 - in /trunk: ./ res/stasis/app.c

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


Author: file
Date: Tue Apr 22 05:09:36 2014
New Revision: 412883

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

Merged revisions 412882 from http://svn.asterisk.org/svn/asterisk/branches/12

Modified:
    trunk/   (props changed)
    trunk/res/stasis/app.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-12-merged' - no diff available.

Modified: trunk/res/stasis/app.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/stasis/app.c?view=diff&rev=412883&r1=412882&r2=412883
==============================================================================
--- trunk/res/stasis/app.c (original)
+++ trunk/res/stasis/app.c Tue Apr 22 05:09:36 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