[svn-commits] twilson: trunk r229015 - /trunk/channels/chan_local.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Nov 9 16:50:27 CST 2009


Author: twilson
Date: Mon Nov  9 16:50:22 2009
New Revision: 229015

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=229015
Log:
Don't crash when bridge->tech_pvt == NULL

This is a similar solution to what is in place for chan_agent

(closes issue #16003)
Reported by: atis
Tested by: twilson

Modified:
    trunk/channels/chan_local.c

Modified: trunk/channels/chan_local.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_local.c?view=diff&rev=229015&r1=229014&r2=229015
==============================================================================
--- trunk/channels/chan_local.c (original)
+++ trunk/channels/chan_local.c Mon Nov  9 16:50:22 2009
@@ -182,6 +182,12 @@
 {
 	struct local_pvt *p = bridge->tech_pvt;
 	struct ast_channel *bridged = bridge;
+
+	if (!p) {
+		ast_debug(1, "Asked for bridged channel on '%s'/'%s', returning <none>\n",
+			chan->name, bridge->name);
+		return NULL;
+	}
 
 	ast_mutex_lock(&p->lock);
 




More information about the svn-commits mailing list